NotepadPlusPlus Highlighting: Difference between revisions

From Tuflow
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=Install Syntax Highlighting=

To enable the colour coding (syntax highlighting) in Notepad++:
To enable the colour coding (syntax highlighting) in Notepad++:
* Download the Notepad++ Syntax Highlighting File from the <u>[https://www.tuflow.com/downloads/ 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>
<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|800px]]
<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>
<br>
[[File:dialogue_box_1.png]]<br>
<br>
<li>Navigate to 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>
</ol>
* Navigate to and select the Notepad++ syntax highlighting xml file you saved.
* 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>
[[File: Syntax_Highlighting_Comparison.png|900px]]
</ol>



=Update Syntax Highlighting=
Note: 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:
* Select "TUFLOW" for the user language options
* Select "Remove"
* Close Notepad++ and reopen it before loading the new file
<ol>
<ol>
<li>Remove the "TUFLOW" language definition by selecting Language > User Defined Language > Define your language...
[[File: UserDefinedLanguage_TUFLOW.png|800px]]
<li>Select "TUFLOW" as the User Language and select "Remove".
<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>
</ol>
* Follow the above listed steps to install the new syntax highlighting file





Latest revision as of 11:17, 23 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:



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



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.



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


Back to Notepad ++ tips.