NotepadPlusPlus Highlighting: Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
 
(17 intermediate revisions by 4 users not shown)
Line 1:
=Install Syntax Highlighting=
 
To enable the colour coding (syntax highlighting) in Notepad++:
<ol>
* Ensure that you have downloaded the Notepad++ Syntax Highlighting File from the TUFLOW website (http://www.tuflow.com/Tuflow%20Utilities.aspx).
<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>.
* Select the ''User Defined Dialogue'' (lightning symbol, circled in red below) from the menu toolbars.
<li>Save the file to a location on your computer.
[[File:NotepadPlusPlus UserDefinedDialogue.png | frame|none]]
<li>Import the syntax highlighting by selecting Language > User Defined Language > Define your language...
* <li>In the dialogue box, select '''Import''': <br>
* Navigate to and select the Notepad++ syntax highlighting xml file.
<br>
* Restart Notepad++.
[[File:dialogue_box_1.png]]<br>
* The colouring should now be associated with .tcf, .tgc, .tbc, .tmf and .ecf files.
<br>
 
* <li>Navigate to and select the Notepad++ syntax highlighting xml file and select it. Click 'Open'.
 
<li>Close any open TUFLOW control files (.tcf, .tgc, .tbc, .ecf).
* <li>Restart Notepad++.
<li>Open any TUFLOW control file (.tcf, .tgc, .tbc, .ecf). The syntax colouring should now be associated with TUFLOW files.<br>
<br>
[[File:Syntax comparison 6.png]]<br>
<br>
</ol>
 
=Update Syntax Highlighting=
Note: When updating the syntax highlighting file with a newer version, remember to first remove the existing "TUFLOW" language definition.:
* Select "TUFLOW" for the user language options
<ol>
* Select "Remove"
<li>Remove the "TUFLOW" language definition by selecting Language > User Defined Language > Define your language...
[[File:Notepad_Update.JPG | frame|none]]
<li>Select "TUFLOW" as the User Language and select "Remove".
* Follow the above listed steps to install the new syntax highlighting file
<li>Restart Notepad++ before loading the new syntax highlighting file.<br>
<br>
[[File: UserDefinedLanguage_TUFLOW.png]]<br>
<br>
* <li>Follow the above listed steps to install the new syntax highlighting file.
</ol>