Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

How to Configure the Syntax Highlighting in Notepad++

Mel HawthorneSeptember 24, 2020 Comments (2)

When you’re writing code, you want your development environment to have the flexibility to work with any of the programming languages you may use. One feature that can be particularly helpful is called “syntax highlighting”. Syntax highlighting applies a range of colours to key syntax depending on the language being used.

Tip: Syntax is a set of rules that describe the structure of a language. The syntax can vary heavily between languages.

There at 87 pre-configured languages in Notepad++, it also includes functionality for you to add new language definitions or to define your own language.

Tip: Syntax highlighting, applies to the whole document, it’s not possible to configure a section of code to use a different set of syntax highlighting rules.

How to configure the syntax highlighting

To configure syntax highlighting in a document, click on “Language” in the top bar. Next, select the first letter of the language you’re coding in, then the exact language from the second level of the drop-down menu.

To configure syntax highlighting, click on “Language” in the top bar, then click the letter the language starts with, and then the language.

If you want to define your own language, click on “Language” again, then click on “User Defined Language”, third from the bottom, and then click “Define your language”. In the “User Defined Language” window, you can enter the details needed to define your language. Full documentation is available at the “Documentation” link in the top-left of the “Folder & Default” tab.

Define your own language through the “User Defined Language” functionality.

Alternatively, if you open or save a document with a supported file extension, Notepad++ will automatically apply the syntax highlighting for the appropriate language. For example, if you save a document with the file extension “.c” for C code, then Sublime Text 3 will automatically enable the syntax highlighting for C code.

Tip: To disable syntax highlighting, select “Normal text”, listed under “N”, from the supported language list.

Categories: Software

Author Mel Hawthorne

You Might Also Like

  • How to Remove Apps from Microsoft Teams

    Madalina DinitaSoftware
  • unable to record zoom meeting fix

    Why Can’t I Record Zoom Meetings?

    Madalina DinitaSoftware
  • Fix Microsoft Teams Error Code caa30190

    Microsoft Teams Error Code CAA30190

    Madalina DinitaSoftware
  • How to Fix Dropbox Preview Not Working

    Madalina DinitaSoftware

Comments

  1. Vinod KC says:
    May 26, 2021 at 8:14 am

    I have Nim language source file in notepad++. But I want to change some colors. Not full colors. String and comments only. If I use Style Configurator, I can change the colors but notepad++ won’t save that changes in xml file. So I loss all that changes I made. How to prevent this.

  2. Shirley says:
    May 15, 2021 at 7:48 pm

    No. When I am trying to create !DOCTYPE html the auto tag replaces the text with a dark highlight and I can not continue or read without the highlight/background on and I am unable to see remoe it

Leave a Reply

Your email address will not be published. Required fields are marked *

  • clipchamp unexpected application error

    Clipchamp Unexpected Application Error: Here’s the Solution 

  • winload.efi file missing error

    Winload.EFI File Missing Error on Boot – How to Fix

  • fix error 0x9cfc7550

    How to Fix Error 0x9cfc7550 (We Couldn’t Create a New Partition) in Windows 

  • fix error code 0x3000008 1

    How to Fix Error Code 0x3000008 for Remote Desktop Connection

  • fix error code 0x80190001 1

    How to Quickly Fix Error 0x80190001 for Microsoft or Outlook Account Login 

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2025 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2025 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on September 24, 2020 by Mitch Bartlett