Categories


Popular topics

Line 1: Line 1:
 
[[Category:General]]
 
[[Category:General]]
 
Syntax highlighting refers to the ability to recognize predefined words or patterns of text and display these in different colors or font styles.  This is particularly useful for coding and can also be useful for general text editing where you want certain words in a file to display in a different color.
 
Syntax highlighting refers to the ability to recognize predefined words or patterns of text and display these in different colors or font styles.  This is particularly useful for coding and can also be useful for general text editing where you want certain words in a file to display in a different color.
 +
 +
In UltraEdit, syntax highlighting for different coding languages is defined in plain text configuration files called '''wordfiles''' (.uew files). Wordfiles contain a set of definitions and rules for the associated language. UltraEdit applies the highlighting in wordfiles based upon file name or extension, or in some cases by identifying a "shebang" line at the top of a file. UltraEdit comes with several pre-defined wordfiles for the most popular and common coding languages, however you can add (or create) many more.
 +
 +
Because wordfiles are self-contained in a plain text file with an human readable syntax, they are very easy to modify. You can open and modify wordfiles by going to [[Editor display:Syntax highlighting|Editor Display » Syntax Highlighting]] in Settings. Select a wordfile from the drop down list and click the '''Open''' button to open it in the editor. You can also see and change (if desired) the folder containing wordfiles that UltraEdit uses for syntax highlighting.
 +
 +
For exhaustive documentation on the various components and settings available for wordfiles, please see the [[Wordfiles]] topic.
 +
 +
You can add or remove wordfiles for syntax highlighting by clicking the '''[[Add syntax highlighting languages|Add another language...]]''' button in the Formatting group of the [[:Category:Coding tab|Coding tab]].
 +
 +
You can change (or apply) syntax highlighting for the active file by using the [[View as language]] drop down in the Formatting group of the [[:Category:Coding tab|Coding tab]], or the syntax highlighting selector in the [[Status bar]].
 +
 +
You can modify the colors used for syntax highlighting for languages in the [[Manage themes]] dialog.
 +
 +
<div class="idm-see-also">
 +
See also:
 +
* [[Editor display:Syntax highlighting|Editor Display &raquo; Syntax Highlighting]]
 +
* [[Wordfiles]]
 +
* [[Add syntax highlighting languages]]
 +
* [[Manage themes]]
 +
</div>

Revision as of 19:02, 10 August 2017

Syntax highlighting refers to the ability to recognize predefined words or patterns of text and display these in different colors or font styles. This is particularly useful for coding and can also be useful for general text editing where you want certain words in a file to display in a different color.

In UltraEdit, syntax highlighting for different coding languages is defined in plain text configuration files called wordfiles (.uew files). Wordfiles contain a set of definitions and rules for the associated language. UltraEdit applies the highlighting in wordfiles based upon file name or extension, or in some cases by identifying a "shebang" line at the top of a file. UltraEdit comes with several pre-defined wordfiles for the most popular and common coding languages, however you can add (or create) many more.

Because wordfiles are self-contained in a plain text file with an human readable syntax, they are very easy to modify. You can open and modify wordfiles by going to Editor Display » Syntax Highlighting in Settings. Select a wordfile from the drop down list and click the Open button to open it in the editor. You can also see and change (if desired) the folder containing wordfiles that UltraEdit uses for syntax highlighting.

For exhaustive documentation on the various components and settings available for wordfiles, please see the Wordfiles topic.

You can add or remove wordfiles for syntax highlighting by clicking the Add another language... button in the Formatting group of the Coding tab.

You can change (or apply) syntax highlighting for the active file by using the View as language drop down in the Formatting group of the Coding tab, or the syntax highlighting selector in the Status bar.

You can modify the colors used for syntax highlighting for languages in the Manage themes dialog.

MediaWiki spam blocked by CleanTalk.