Learn How to Modify Color Syntax in Notepad++

spot_img

Share This Post

Since it came out in 2003, Notepad++ has become one of the most used editors for Windows. Fans of the editor, which has been downloaded more than 20 million times, love how simple and fast it is.

Notepad++ has syntax highlighting for 78 different programming languages, which is a useful feature for coders. This article will show you how to change the color of syntax highlighting for any language.

How to Modify Color Syntax in Notepad++?


Before you can change the color syntax (syntax highlighting) for your code in Notepad++, you need to make sure that the right language is selected. Click on “Language,” then find your coding language and choose it.

In our example, we are working with a Javascript file, so we made sure that “Language->J->Javascript” was selected in Notepad++.How to Modify Color Syntax in Notepad++?

Once you select the correct language, follow these steps to change the color syntax.

  1. Click Settings
  2. Click Style Configurator
  3. Under the Language column, select the language you are working with.
  4. Under the Style column, select the part of the syntax you would like to modify.
  5. Change your color under Colour Style.

For example, if you don’t like the color of the strings in a Javascript file, you would go to Language: JavascriptStyle: STRING, and change the Foreground color to whatever you like.

How to Modify Color Syntax in Notepad++

Styles are saved to the chosen theme by the Style Configurator. At the top of the Style Configurator, click the “Select theme” dropdown and choose a different theme to change your theme.

But any changes you made to the style of the other theme won’t be carried over.

 

How to Create Your Own Language Syntax Highlighting?


Notepad++ allows you to define your language if it doesn’t already support it. Follow these steps to create your language:

  1. Click Language.
  2. Click User Defined Language.
  3. Click Define your language.
  4. Click on the Keywords Lists tab.
  5. Enter your keywords and styles.

This screen has many color customization options, but the Keywords Lists are a great place to start.

 

How to Disable Syntax Highlighting?


To disable syntax highlighting, click on “Language” and then “None (Normal Text).” You can always change back to a specific language later if you like.

You now know how to change the colors of syntax in notepad++, which is also called syntax highlighting. If you like editors that you can change a lot, you should check out Vim.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related Posts

How to Choose Best Lift Chair?

For people with physical disabilities and the elderly, getting...

NuWave Brio Air Fryer Review

Craving for some fried goods but scared of the...

Commercial Toaster: Top Picks with Buying Guide and FAQs

Commercial Toaster: Top Picks with Buying Guide and FAQs...

Best High-Velocity Blower Fans

Does your room feel so warm during the summer?...

10 Best Xbox One Gaming Chair: Buying Guide And Reviews

For some people, console gaming should have the right...

Best Gaming Chairs Under 200$

Whether you game as a hobby or happen to...
spot_img
- Advertisement -spot_img