Skip to main content
DPadula
Staff & Editor
Staff & Editor
April 28, 2023

Technical Tip: Using the FortiOS language in Notepad++

  • April 28, 2023
  • 1 reply
  • 11384 views
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
    April 25, 2024

    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.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!