NotepadPlusPlus Highlighting: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
=Import Syntax Highlighting=
 
To enable the colour coding (syntax highlighting) in Notepad++:
* Download the Notepad++ Syntax Highlighting File from the <u>[https://downloads.tuflow.com/Utilities/Syntax_Highlighting/NPP_TUFLOW_Syntax_Highlighting.zip TUFLOW website]</u>.
* Save the file to a location on your computer.
* Select the Language tab - User Defined Dialogue.
* In the dialogue box, select Import:
<ol>
* <li>Download the Notepad++ Syntax Highlighting File from the <u>[https://downloads.tuflow.com/Utilities/Syntax_Highlighting/NPP_TUFLOW_Syntax_Highlighting.zip TUFLOW website]</u>.
[[File: UserDefinedLanguage_Import.png]]
* <li>Save the file to a location on your computer.
<li>Import the syntax highlighting by selecting Language > User Defined Language > Define your language...
* <li>In the dialogue box, select Import: <br>
<olbr>
[[File:dialogue_box_1.png]]<br>
<br>
* <li>Navigate to and select the Notepad++ syntax highlighting xml file youand select it. Click saved'Open'.
* <li>Close any open TUFLOW control files (.tcf, .tgc, .tbc, .tmf, .ecf).
* <li>Restart Notepad++.
* <li>Open a TUFLOW control files (.tcf, .tgc, .tbc, .tmf, .ecf). The syntax colouring should now be associated with TUFLOW files.<br>
<br>
[[File:Syntax comparison 6.png]]<br>
<br>
</ol>
=Update Syntax Highlighting=
* Navigate to and select the Notepad++ syntax highlighting xml file you saved.
Note: When updating the syntax highlighting file with a newer version, first remove the existing "TUFLOW" language definition.:
* Close any open TUFLOW control files (.tcf, .tgc, .tbc, .tmf, .ecf).
* Restart Notepad++.
* Open a TUFLOW control files (.tcf, .tgc, .tbc, .tmf, .ecf). The syntax colouring should now be associated with TUFLOW files.
<ol>
<li>Remove the "TUFLOW" language definition by selecting Language > User Defined Language > Define your language...
[[File:Syntax comparison 6.png]]
<li>Select "TUFLOW" as the User Language and select "Remove".
* Close<li>Restart Notepad++ and reopen it before loading thea new file.<br>
<br>
[[File: UserDefinedLanguage_TUFLOW.png]]<br>
<br>
* <li>Follow the above listed steps to install the new syntax highlighting file.
</ol>
 
 
Note: When updating the syntax highlighting file with a newer version, first remove the existing "TUFLOW" language definition.
* Select "TUFLOW" for the user language options.
* Select "Remove".
* Close Notepad++ and reopen it before loading the new file.
<ol>
[[File: UserDefinedLanguage_TUFLOW.png]]
</ol>
* Follow the above listed steps to install the new syntax highlighting file.