• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
How to Configure the Syntax Highlighting in Notepad++

How to Configure the Syntax Highlighting in Notepad++

September 24, 2020 by Mel Hawthorne 2 Comments

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.

You Might Also Like

  • How to Enable Syntax Highlighting in Sublime Text 3
    How to Enable Syntax Highlighting in Sublime Text 3
  • How to Set Notepad++ to Be Always on Top
    How to Set Notepad++ to Be Always on Top
  • How to Add Plugins to Notepad++
    How to Add Plugins to Notepad++
  • Notepad++: How to Use "Column Mode"
    Notepad++: How to Use "Column Mode"
  • Troubleshooting Notepad++ Not Saving
    Troubleshooting Notepad++ Not Saving
  • How to Generate a Hash in Notepad++
    How to Generate a Hash in Notepad++

Filed Under: Software

Reader Interactions

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

Did this help? Let us know!

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • How to Find Your Lost Samsung Phone
  • How to Change Microsoft 365 Two-Factor Authentication
  • How to Export Chrome Bookmarks
  • How to Make Your iPad’s Keyboard Bigger
  • How to Enable and Manage Do Not Disturb on iPad (iPadOS 16.5)
  • How to Put Apps to Sleep in Windows 11
  • Fix: Excel Opens in Tiny Window
  • What is SMPS?

Who’s Behind Technipages?

Baby and Daddy 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.

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy