• Skip to main content
  • Skip to primary sidebar

Technipages

Smart phone, gadget and computer tutorials

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
How to Configure the Syntax Highlighting in Notepad++

How to Configure the Syntax Highlighting in Notepad++

Posted on September 24, 2020 by Mel Hawthorne Leave a Comment

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 3How to Enable Syntax Highlighting in Sublime Text 3
  • How to Set Notepad++ to Be Always on TopHow to Set Notepad++ to Be Always on Top
  • How to Add Plugins to Notepad++How to Add Plugins to Notepad++
  • Troubleshooting Notepad++ Not SavingTroubleshooting Notepad++ Not Saving
  • Notepad++: How to Use "Column Mode"Notepad++: How to Use "Column Mode"
  • How to Generate a Hash in Notepad++How to Generate a Hash in Notepad++
  • How to Base64 Encode and Decode in Notepad++How to Base64 Encode and Decode in Notepad++
  • Fix Notepad++ Doesn't Show Up in Open WithFix Notepad++ Doesn't Show Up in Open With
  • How to Enable Word Wrap in Notepad++How to Enable Word Wrap in Notepad++

Filed Under: Software

Reader Interactions

Did this help? Let us know! Cancel reply

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

  • Zoom: How to Receive Notifications for Messages You’re Following
  • Zoom: How to Configure the Size of Captions
  • Fix Microsoft Teams Not Detecting Camera
  • Microsoft Teams: Mouse Scroll Wheel Not Working
  • Fix Microsoft Teams Browser Not Supported
  • Android 10: How to Adjust the Keyboard Size
  • OneNote Error Code 0xE00001AE – Fix
  • WhatsApp: How to Change Your Phone Number

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.

Follow me on Twitter, or visit my personal blog.

You May Also Like

© Copyright 2021 Technipages · All Rights Reserved · Privacy