Skip to main content
DPadula
Staff & Editor
Staff & Editor
Apr 28, 2023 6:32 AM UTC

Technical Tip: Using the FortiOS language in Notepad++

Description This article describes how to use the FortiOS language in Notepad++.
Scope All products that use FortiOS as operating system.
Solution

Notepad++ supports many programming languages as Python, C++, etc. When choosing the language for a currently open file, Notepad++ highlights the syntax automatically. A FortiOS language option is available that allows users to easily find specific configuration details.

Below is an example of a configuration file without the language enabled:

 

off.png

And below is an example of a configuration file with the language enabled:

 

on.png

 

The language is available in the Notepad++ repository, meaning anyone can download and use it. Follow the steps below.

 

1) Go to https://github.com/notepad-plus-plus/userDefinedLanguages/tree/master/UDLs, select 'Go to file', and search for 'Fortinet'.

 

FortiOS Notepad++ 02.png

2) Download the .xml file and follow steps 1 and 2 in these instructions to install it: https://github.com/notepad-plus-plus/userDefinedLanguages.

3) Open the FortiGate configuration file, go to 'Language' and select 'Fortinet_FortiOS_FGT' to apply the language to the configuration file.

 

FortiOS Notepad++ 03.png

 

Use the ALT + 0 keys together to collapse all configurations and ALT + SHIFT + 0 to expand all configurations.

    1 reply

    emmanuelgonzalez914
    Staff
    Staff
    Apr 25, 2024 2:35 AM UTC

    Thanks for the information. It is beneficial, I tried to find a syntax package for Sublime Text without success, but this one could help me a lot.

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024