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

Bug 368382

Summary: Can't override the highlighter for java/js/css/json
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: davidleonigit-eclipse, eclipse.felipe, ken_walker, Silenio_Quarti
Version: 0.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2012-01-11 13:02:57 EST
Currently the TextStyler is always used for Java, JavaScript, JSON and CSS files.
This makes it impossible for a service to provide an alternative.

We should only fall back to the TextStyler when there are no registered services capable of handling one of these types.
Comment 1 Ken Walker CLA 2013-02-26 09:38:29 EST
I'd like to write a highlighter for JS files that does something different and would need to override the default.  Silenio, is this still an issue?
Comment 2 Mark Macdonald CLA 2013-02-26 10:06:13 EST
This is still an issue. The culprit is highlight.js -- the logic there needs to check extensions first.
Comment 3 John Arthorne CLA 2015-05-05 14:39:41 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html