Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347867 - [client] Contribute syntax highlighting / styler without registry
Summary: [client] Contribute syntax highlighting / styler without registry
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Mark Macdonald CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 17:18 EDT by Mark Macdonald CLA
Modified: 2011-09-01 11:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Macdonald CLA 2011-05-31 17:18:04 EDT
Need a way to contribute syntax highlighting rules without the plugin registry. 

Also, it should be possible to contribute your own JS implementation of styler rather than a grammar-based set of rules. Currently only a grammar is supported.
Comment 1 Simon Kaegi CLA 2011-05-31 20:58:38 EDT
Can you describe a bit what you're thinking about.
Comment 2 Mark Macdonald CLA 2011-06-01 09:31:33 EDT
(In reply to comment #1)
> Can you describe a bit what you're thinking about.

Originally I meant this for whatever needed to be done to get HTML highlighting working in a no-registry scenario.

But I just looked at the code and this should be possible already. You can directly instantiate a TextMateStyler, pass the grammar from htmlSyntaxHighlight.js and then use it in your editor.

I'll update the embeddededitor example to show how this can be done.