HTML + JS Syntax

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Bonzooznob
Posts: 5
Joined: Tue Sep 30, 2003 1:03 pm

HTML + JS Syntax

Post 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?
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post 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
Then I open up and see
the person fumbling here is me
a different way to be
charles
Posts: 20
Joined: Mon Dec 27, 2004 5:11 pm
Contact:

Post by charles »

Which HTML syntax file works with JS keywords ?
The 2 syntax files I found only mentioned XSL
Post Reply