Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347867

Summary: [client] Contribute syntax highlighting / styler without registry
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: simon_kaegi
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.