Open
Advanced - Configuration - Editor Display - Syntax Highlighting, select language
HTML, click on button
Open and close the configuration dialog with button
Cancel.
Following is possible at the moment:
In first line insert
left to
File Extensions = the definition:
Code: Select all
Block Comment On Alt = @{ Block Comment Off Alt = }
That results in highlighting a block starting with
@{ and ending with
} with the color for alternate block comments which can be customized under
View - Themes - Manage Themes on tab
Syntax for language
HTML.
Additionally append at bottom of
html.uew:
That is a substring definition to highlight all words starting with
@ with color 4 named
Razor Statements. The colors for this color group can be also configured in the manage themes dialog.
For a better support like a real multi-language syntax highlighting support with detection of Razor blocks and single statements in a HTML file it would be necessary that developers of IDM add the detection rules for Razor to code of UltraEdit and introduce a new language marker keyword for Razor making it possible to use a complete wordfile for Razor to highlight keywords and strings in a Razor code block. You can send a feature request email to IDM support regarding such an enhancement with explaining in detail how Razor blocks inside HTML code can be identified.
One question:
@ is a common character in HTML files because of being part of email addresses.
How does Razor interpreter distinguish if
@ belongs to an email address or should be interpreted as literal character in text, or marks a single Razor statement?