Difference between revisions of "NotepadPlusPlus Highlighting"

From Tuflow
Jump to navigation Jump to search
Line 1: Line 1:
=Import Syntax Highlighting=
+
=Install Syntax Highlighting=
 
To enable the colour coding (syntax highlighting) in Notepad++:
 
To enable the colour coding (syntax highlighting) in Notepad++:
 
<ol>
 
<ol>
Line 17: Line 17:
 
<br>
 
<br>
 
</ol>
 
</ol>
 +
 
=Update Syntax Highlighting=
 
=Update Syntax Highlighting=
 
When updating the syntax highlighting file with a newer version, first remove the existing "TUFLOW" language definition:
 
When updating the syntax highlighting file with a newer version, first remove the existing "TUFLOW" language definition:

Revision as of 12:31, 21 August 2023

Install Syntax Highlighting

To enable the colour coding (syntax highlighting) in Notepad++:

  1. Download the Notepad++ Syntax Highlighting File from the TUFLOW website.
  2. Save the file to a location on your computer.
  3. Import the syntax highlighting by selecting Language > User Defined Language > Define your language...
  4. In the dialogue box, select Import:

    Dialogue box 1.png

  5. Navigate to the Notepad++ syntax highlighting xml file and select it. Click 'Open'.
  6. Close any open TUFLOW control files (.tcf, .tgc, .tbc, .tmf, .ecf).
  7. Restart Notepad++.
  8. Open a TUFLOW control files (.tcf, .tgc, .tbc, .tmf, .ecf). The syntax colouring should now be associated with TUFLOW files.

    Syntax comparison 6.png

Update Syntax Highlighting

When updating the syntax highlighting file with a newer version, first remove the existing "TUFLOW" language definition:

  1. Remove the "TUFLOW" language definition by selecting Language > User Defined Language > Define your language...
  2. Select "TUFLOW" as the User Language and select "Remove".
  3. Restart Notepad++ before loading the new syntax highlighting file.

    UserDefinedLanguage TUFLOW.png

  4. Follow the above listed steps to install the new syntax highlighting file.


Back to Notepad ++ tips.