Page 1 of 1

HTML + JS Syntax

Posted: Wed Nov 24, 2004 8:02 pm
by Bonzooznob
Hello,

Has anyone figured out a way, to have TextPad show syntax highlighting for 2 languages at the same time?

E.g. HTML + JavaScript

I would love to see my embedded JavaScript, syntax highlighted, within my HTML documents...

e.g. I would like all content within <script...> tags...

Code: Select all

<script>
   <!--
      ...
      var foo = new Object();
      ...
   //-->
</script>
to appear syntax highlighted, as JavaScript, not XHTML comments...

Any ideas?

If there is no way/workaround, can I create a Poll to see if this is a common desire?

Posted: Thu Nov 25, 2004 7:35 am
by s_reynisson
Did you try the files listed here? There's a file with the URL http://www.textpad.com/add-ons/files/sy ... script.zip
Syntax definitions, based on existing add-ons, with additional keywords for JSP v1.2, Struts1.1.0,jdk1.4,html4.0,and Javascript1.2. Contributed by Yaman Kumar, 18 July 2003.
There are other files there if this one does not do it for you. - HTH

Posted: Mon Dec 27, 2004 5:16 pm
by charles
Which HTML syntax file works with JS keywords ?
The 2 syntax files I found only mentioned XSL