Highlighting embedded code in XML document?

Questions on using RSyntaxTextArea should go here.

Moderator: robert

Highlighting embedded code in XML document?

Postby 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.
Leaf
 
Posts: 1
Joined: Fri Jul 26, 2013 4:11 pm

Re: Highlighting embedded code in XML document?

Postby 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.
User avatar
robert
 
Posts: 788
Joined: Sat May 10, 2008 5:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 5 guests

cron