Miklos, the alternate line comment definition is absolutely correct if really copied exactly as shown here from the wordfile.
Absolutely useless is specifying
/* and
*/ as block comment and as alternate block comment. If you want to highlight block comments different to line comments, remove
Block Comment On = /* Block Comment Off = */ otherwise remove
Block Comment On Alt = /* Block Comment Off Alt = */.
If you want to highlight line comments starting with
-- and block comments with same color, but highlight line comments starting with
rem with a different color, replace
Block Comment On Alt = /* Block Comment Off Alt = */ by just
Block Comment On Alt = rem. That results in using the color and font style settings configured for alternate block comments for the line comments starting with
rem.
I think the reason for not getting line comments starting with
rem highlighted as comments in your *.sql files is using more than 1 wordfile which lists
SQL after
File Extensions =. For example there is pre-installed the wordfile
mysql.uew with language name
MySQL 5.1 containing as first line
Code: Select all
/L13"MySQL 5.1" SQL_LANG Nocase Line Comment = # String Chars = `' Line Comment Alt = -- Block Comment On = /* Block Comment Off = */ Escape Char = \ File Extensions = SQL
So if
MySQL 5.1 is displayed in the status bar at bottom of the main window for active SQL file and not
Oracle SQL as defined in the wordfile you edited, the highlighting is according to wordfile
mysql.uew. On not using basic status bar it is possible to click on syntax language name in status bar and select
Oracle SQL as highlighting for active file.
You should remove wordfile
mysql.uew from directory displayed after opening
Advanced - Settings/
Configuration - Editor Display - Syntax Highlighting if you never want to use this SQL highlighting which speeds up startup time of UltraEdit and avoids the highlighting confusion.
You could alternatively also just remove
SQL from first line of
mysql.uew opened via the button
Open in configuration dialog
Advanced - Settings/
Configuration - Editor Display - Syntax Highlighting to get by default *.sql files highlighted with your
Oracle SQL wordfile, but giving you nevertheless the opportunity to manually select
MySQL 5.1 for an opened *.sql file.
In general it is advisable to delete all *.uew files in directory displayed in
Syntax Highlighting configuration dialog never used by you. The less *.uew files are in this directory, the faster is the startup of UltraEdit as less wordfiles must be read in. The installer of UltraEdit for Windows and UEStudio installs the standard *.uew files into a subdirectory
wordfiles in the program files directory of UE/UES. So it is always easy to get a deleted wordfile in usually used
wordfiles directory in application data directory of UltraEdit/UEStudio back by copying the wordfile manually from wordfiles directory in program files folder of UE/UES into wordfiles directory of application data directory of UE/UES.