Combining syntax highlighting in notepad++

notepadpythonsyntax highlightingxml

Is it possible to highlight two (or more) languages simultaneously in notepad++?

In this particular case I am working with xml files, but in certain tags in the files I am using using python, JS, and CSS. Now the last two don't bother me too much but there can be large chunks of python code enclosed by <exec></exec> tags.
(I saw other questions which ask about JS and html with the same file, but it seems that case is done automatically)

So is it possible to make the program mark up everything inside such tags with the python highlighting it already has?

Best Answer

Notepad++ does not offer this functionality as far as I know, but phpDesigner will definitely do it. I used it once for this same reason.

I have also heard that Sublime will do it, but I have not tried myself.

Related Question