FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
DPadula
Staff
Staff
Article Id 254325
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.

Comments
emmanuelgonzalez914

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.

Contributors