By Manny Fernandez

August 4, 2025

Style All Occurrences of Tokens in Sublime Text

Style All Occurrences of Tokens in Sublime Text

Probably the only thing I envy from the Windows world is NotePad++.  There is a particular feature I like about it when searching through logs.  That feature is the Style all occurrences of token which lets you highlight all the instances of the data you selected.  So lets say you are troubleshooting something and you grab the log file, sometimes its a hot mess and searching for every instance is a pain.  In NotePad++ you can select the text (e.g. 192.168.1.99) and right click and choose Style all occurrences of token and then select the style you want.  Since NotePad++ does not run on macOS, and I love SublimeText I wanted to figure out how to do it in Sublime.

Sublime Text

As with most things Sublime, there is a package for it.  In the case of the token, we used StyleToken.  To install it, you need to go to the command palette by typing   ⌘ ⇧ P and search for install package. Once there, search for StyleToken and hit enter.

Now when you have your data file, highlight the text you want, right click and choose the style number (by default they have 5 but it supports 10. See below)

You can continue to highlight up to 5 (10 if you modify) and it will pick pre-loaded colors.

Now you can look through the log and quickly identify matches.

Hope this helps

 

Deploying a FortiGate as an IPsec IKEv2 Remote-Access VPN Concentrator for Linux Clients with FortiToken MFA

Deploying a FortiGate as an IPsec IKEv2 Remote-Access VPN Concentrator for Linux Clients with FortiToken MFA

Configure a FortiGate IKEv2 VPN Linux concentrator with FortiToken MFA. This guide covers strongSwan client setup, EAP authentication, and port 443 traversal for remote...

Read More
Installing OpenSource SAML in Your Lab Environment

Installing OpenSource SAML in Your Lab Environment

Install Authentik using Docker Compose on Ubuntu. Configure an open source SAML server for your FortiGate lab environment with this step-by-step guide.

Read More
FortiGate IPsec Remote Access VPN with Microsoft Entra ID

FortiGate IPsec Remote Access VPN with Microsoft Entra ID

Configure FortiGate IPsec VPN with Microsoft Entra ID using SAML SSO. Step-by-step guide for FortiClient setup, certificate management, and claim mapping.

Read More