Highlighting language variants in a structured way

Syntax highlighting, code folding, brace matching, code indenting, and function list

Highlighting language variants in a structured way

Postby PaoloFCantoni » Wed Oct 05, 2005 8:28 am

Hi,

I deal a lot with several variants of Basic (Rational Rose Basic, Rational Robot Basic, SaxBasic, Visual Basic, VB.Net, Word Basic... - you get the picture)

Is it possible to use multi-language support to handle these variants easily?

What I'm thinking is to have a Base Basic, which contains all the common stuff and then have variants that use it.

At present, I have to amend each variant which is a real pain...

If it's doable, what are the essential elements of the process?

TIA,
Paolo
User avatar
PaoloFCantoni
Power User
Power User
 
Posts: 113
Joined: Sun May 01, 2005 11:00 pm
Location: Perth, Western Australia

Re: Highlighting language variants in a structured way

Postby s_m_b » Thu Oct 06, 2005 8:03 am

that would be ###very### neat!
The variation that comes to mind is with any web-app scripts - PERL/ASP/PHP etc, the highlights need to be able to distinguish between the code and page output
e.g.

PERL:

$somevar = qq~<sometags>~;

^ PERL--------^ ^ html-----^^PERL

or

$somevar = qq~select [id],[col1] from [sometable]~;

^ tsql--------------------------------^
ASP (VBscript)

response.write(somevar & "<sometag>")
^vbs------------------------^^html------^

perhaps if one language syntax could have others associated with it to handle highlighting per situation .....


Hey., I know the syntax highlighting of UE still needs some work doing on it, but this would be an amazing watermark to get to!
User avatar
s_m_b
Basic User
Basic User
 
Posts: 13
Joined: Thu Sep 01, 2005 11:00 pm

Re: Highlighting language variants in a structured way

Postby PaoloFCantoni » Fri Apr 03, 2009 1:19 am

Hi Everyone,

The New Word files for V15 look really NEAT! And IDM have incorporated a couple of my requests over the years. However this one hasn't been... Given the new functionality, is there any way to achieve this or should I put in another request? It would seem to be relatively easy now... Just add a new directive: InheritFrom=<filename>
and for each section (whose number must agree with the parent file) start each line with + or - to add or delete the selected items...

TIA,
Paolo
User avatar
PaoloFCantoni
Power User
Power User
 
Posts: 113
Joined: Sun May 01, 2005 11:00 pm
Location: Perth, Western Australia

Re: Highlighting language variants in a structured way

Postby mjcarman » Sun Apr 05, 2009 9:35 pm

This is a bit of a tangent, but I put in a feature request for syntax highlighting to support multiple languages in a single file. UE already does this for HTML but I'm hoping for generic support. (e.g. HTML and CSS embedded in a Perl CGI script.) The idea seems to have piqued some interest. If anyone here thinks it's a good idea send a request to IDM. The more people who express interest the more likely it is to happen.
User avatar
mjcarman
Power User
Power User
 
Posts: 123
Joined: Thu Feb 10, 2005 12:00 am


Return to Syntax Highlighting