No highlighting after tab

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

No highlighting after tab

Postby Urbanan » Wed Jul 19, 2006 10:52 am

Hi !

I've used UltraEdit for sometime, but never used wordfiles that much. But now it would be really helpful if i could get this to work.

Thing is - I've downloaded the wordfile for ABB S4 Rapid, and the highlighting works fine as long as the words is in the first position of the line or after one or several spaces ... but never after a tab! If i write the same word twice after a tab the second word is highlighted but not the first.

Is there anyone that has a clue about this ?

And i read somewhere about the colours of the highlighting appearing even when printing from UltraEdit .... how do I do that ?

Thanks in advance !
Regards, Urban
User avatar
Urbanan
Newbie
 
Posts: 2
Joined: Tue Jul 18, 2006 11:00 pm

Re: No highlighting after tab

Postby Mofi » Wed Jul 19, 2006 12:45 pm

The tab problem can be easily solved. It looks like the syntax highlighting definition for ABB S4 Rapid has not a tab character in the list of delimiter characters. Open your wordfile, scroll down to the language definition line for ABB S4 Rapid. The next line should be something like this (from C++):

/Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> ,tab.?

The tab is a place holder for a real horizontal tab (ASCII hex code 09) because the browsers must interpret a tab as a single space when displaying a HTML file.

Exactly this tab character is missing in your wordfile in the list of delimiters for ABB S4 Rapid.

Print with syntax highlighting: At File - Print Setup/Configuration - Page Setup enable the option Print Syntax Highlighting. And you must have also a color printer!
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4042
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: No highlighting after tab

Postby Urbanan » Wed Jul 19, 2006 1:39 pm

Ah, now it works ! Thank you very much, Mofi !

Thanks to your excellent advice and UltraEdits hex edit mode, my programs in UE and also on paper now looks brilliant ! \o/

Thankful and happy regards from Sweden :)

/urban
User avatar
Urbanan
Newbie
 
Posts: 2
Joined: Tue Jul 18, 2006 11:00 pm


Return to Syntax Highlighting