Syntax highlighting
Posted: Thu Nov 01, 2001 4:22 pm
Hi all,
Is it possible with the current version of TextPad to get syntax highlighting for multiple languages in the same document? ie. - I do web development and my documents regularly have HTML, Perl, JavaScript and Intershop tags. All of these in ONE document. I would like TextPad to recognize when each of these is being used, perhaps by having separate syntax start and end tags, and separate comment tags for each.
I have already made a custom syntax file with different Keywords sections for each language, but the syntax highlighting gets confused and uses the javascript colours in the perl for common keywords.
Is it possible with the current version of TextPad to get syntax highlighting for multiple languages in the same document? ie. - I do web development and my documents regularly have HTML, Perl, JavaScript and Intershop tags. All of these in ONE document. I would like TextPad to recognize when each of these is being used, perhaps by having separate syntax start and end tags, and separate comment tags for each.
I have already made a custom syntax file with different Keywords sections for each language, but the syntax highlighting gets confused and uses the javascript colours in the perl for common keywords.