Syntax highlithing color codes

Hi, I am using an XML serializer written in XSLT to serialize elements in HTML, with syntax highlighting. In order to not re-invent my own color code, I would like to use the same colors as oXygen, while editing a stylesheet. Do you have those colors as CSS color codes? And would it be ok for you to share them? Regards, -- Florent Georges http://www.fgeorges.org/

Hi Florent, You can find the color codes used by oXygen in the options file. They are entries of the form <entry> <String xml:space="preserve">cl.XML.0</String> <String xml:space="preserve">0,0,0</String> </entry> to <entry> <String xml:space="preserve">cl.XML.16</String> <String xml:space="preserve">139,38,201</String> </entry> and there you have also entries for what those colors represent, see for example c.XML.7 represents attribute names: <entry> <String xml:space="preserve">cl.XML.7.name</String> <String xml:space="preserve">Attribute_name</String> </entry> The color values are RGB in decimal. Basically you can write a stylesheet to extract them in #RRGGBB format and use that in CSSs. The options file is located in different locations depending on platform, for Mac it should be Library/Preferences/com.oxygenxml, see for details/other platforms point 3 from: http://www.oxygenxml.com/doc/ug-oxygen/uninstalling-standalone.html The options file is named oxyOptionsSa10.1.xml. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Florent Georges wrote:
Hi,
I am using an XML serializer written in XSLT to serialize elements in HTML, with syntax highlighting. In order to not re-invent my own color code, I would like to use the same colors as oXygen, while editing a stylesheet.
Do you have those colors as CSS color codes? And would it be ok for you to share them?
Regards,

George Cristian Bina wrote: Hi George,
You can find the color codes used by oXygen in the options file. They are entries of the form <entry> <String xml:space="preserve">cl.XML.0</String> <String xml:space="preserve">0,0,0</String> </entry>
Didn't know this file, that's very interesting :-) I just were not able to find the color used for XSLT instruction elements (in the XSLT editor.) They are in a lighter blue... Thanks for your response. Regards, -- Florent Georges http://www.fgeorges.org/

Hi Florent, Probably you want the color set in Options->Preferences -- Editor -- Colors -- Elements by Proxy for xsl/xslt. The entries in the options file look like this: <entry> <String xml:space="preserve">sh.proxy.map.colors.second</String> <String xml:space="preserve">0,100,200;0,100,200;</String> </entry> <entry> <String xml:space="preserve">sh.proxy.map.proxies</String> <String-array> <String xml:space="preserve">xsl</String> <String xml:space="preserve">xslt</String> </String-array> </entry> So that color is RGB 0,100,200 in decimal. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Florent Georges wrote:
George Cristian Bina wrote:
Hi George,
You can find the color codes used by oXygen in the options file. They are entries of the form <entry> <String xml:space="preserve">cl.XML.0</String> <String xml:space="preserve">0,0,0</String> </entry>
Didn't know this file, that's very interesting :-)
I just were not able to find the color used for XSLT instruction elements (in the XSLT editor.) They are in a lighter blue...
Thanks for your response. Regards,
participants (2)
-
Florent Georges
-
George Cristian Bina