Highlighting embedded code in XML document?

Post a reply

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Highlighting embedded code in XML document?

Re: Highlighting embedded code in XML document?

Post by robert » Fri Jul 26, 2013 11:40 pm

Unfortunately, there's no way to embed syntax highlighting for one language into another. To do this, you'd have to write your own TokenMaker implementation.

Highlighting embedded code in XML document?

Post by Leaf » Fri Jul 26, 2013 5:04 pm

Howdy all.

I am trying to set up RSyntaxTextArea to edit XML files that have Lua code embedded between certain XML tags. What would be the best way to go about hooking into the XML parser and directing these Lua blocks into the lua parser to get proper highlighting in the Lua blocks?

Thanks, y'all! I apologize for my ignorance! I'd really appreciate it if someone be willing to nudge me in the right direction about the best way to go about doing this.

Top