views:

147

answers:

2

To mitigate some of the headache of working with XML I've been experimenting with PXSL, an abbreviated syntax for any XML document with advanced macro capabilities. However, since it's so new, I haven't been able to find any text editors that know how to parse it for syntax highlighting.

Do you know of any editors or plug-ins that would enable this? Where would I start if I wanted to define syntax highlighting, say for Notepad++?

Thanks in advance.

+1  A: 

I am not a Notepad++ user, but I can recommend you to use UltraEdit and its custom syntax highlighting feature.

It already supports several languages as stated below:

http://www.ultraedit.com/downloads/extras.html

And the best side is, you can build your own word file by taking a look at the examples.

The worst part on the other hand, UltraEdit is not free..

dincer80
I think you should give it a chance at least for 30 days..
dincer80
A: 

You might check out the PApp syntax highlighting included in VIM.

The PApp syntax file handles .papp files and, to a lesser extend, .pxml and .pxsl files which are all a mixture of perl/xml/html/other using xml as the top-level file format. By default everything inside phtml or pxml sections is treated as a string with embedded preprocessor commands. If you set the variable:

:let papp_include_html=1

in your startup file it will try to syntax-hilight html code inside phtml sections, but this is relatively slow and much too colourful to be able to edit sensibly ;) (aka, pxsl is hard to parse)

The newest version of the papp.vim syntax file can usually be found at http://papp.plan9.de.

Nerdling