From pedjany@fastmail.fm Sat Jun 14 23:25:04 2008 From: Pedja To: textmate@lists.macromates.com Subject: [TxMt] Setting up syntax highlighting for python scripts embedded in xml files Date: Sat, 14 Jun 2008 16:25:03 -0700 Message-ID: <1213485903.10344.1258488825@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6683918977451858674==" --===============6683918977451858674== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, The project I am currently working on requires me to write xml configuration files for a custom application for experience sampling. The files contain embedded python scripts, contained in the following regions: I know that TextMate is able to deal with embedded regions that have a different language deffinition than the main file (like php and javascript sections in HTML) so I was trying to set this up for XML so I can have proper syntax highlighting for python. So far, though, I have not had any luck with this. I tried adding the following in the xml language definition, both right after the section for embedded java and, when that didn't work, right after the section for CDATA comments, but it doesn't seem to work: { name =3D 'source.python.embedded.xml'; begin =3D '\s*?\s*?