What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Microsoft’s built-in Windows Notepad is a minimal text editor. In 2024, it still does not offer true syntax highlighting (colored keywords, strings, comments) the way developer editors do.

If you want real syntax highlighting, the fastest path is to use a Notepad-style editor that supports language modes and theming—most often Notepad++. This guide shows exactly how to configure syntax highlighting in practice, plus alternatives if you prefer something lighter.

When you finish, you’ll know what you can configure in Notepad, and you’ll also have step-by-step instructions to get consistent syntax colors for the languages you actually use.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does Microsoft Notepad support syntax highlighting?

No—Windows Notepad (the default app named Notepad on Windows 10/11) does not include syntax highlighting. You can change formatting like font and line wrapping, but you can’t colorize code by language.

So if your goal is “keyword / string / comment colors,” you need either a different editor or a different app built on the Notepad UI idea but with language support.

Prerequisites and what you’ll need

  • Windows 10 or Windows 11 (works similarly across both)
  • Notepad++ 8.6.x (current 2024 releases are in the 8.x line; the menus below match)
  • Basic familiarity with opening files and selecting menus

If you only need syntax highlighting for one-off files, you can set the language manually. If you want it to work automatically every time, you’ll set file associations.

Option A: Get syntax highlighting using Notepad++ (recommended)

Notepad++ is the closest “classic Notepad but better” option. It supports language detection, syntax coloring, themes, and consistent formatting across file types.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Step 1 — Set the language for your file

Open your code file in Notepad++. Then set the language mode so Notepad++ knows what rules to apply.

  1. Open Notepad++.
  2. Go to Language (top menu).
  3. Select the correct language (example: JavaScript, Python, HTML, CSS, SQL).

When the language is correct, you should immediately see keywords, strings, and comments colored differently.

Step 2 — Ensure syntax highlighting is enabled

Notepad++ uses syntax highlighting based on the selected language and its style settings. If colors don’t appear, verify the style/style-writing toggle settings.

  1. Open Settings → Style Configurator….
  2. At the top, choose the language (for example, JavaScript).
  3. Confirm token styles like Comments, Strings, and Keywords have visible foreground colors (not “same as default” / not set to invisible).

If the style colors look empty or uniform, you can reset or switch to a known theme (covered next).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Step 3 — Customize colors and styles

This is where you control syntax highlighting “how it looks.” You can change colors per token type for each language.

  1. Go to Settings → Style Configurator….
  2. Pick the language from the drop-down.
  3. Select a token type (example: Keywords, Strings, Comments).
  4. Adjust Foreground and optionally Background color.
  5. Repeat for other token types you care about.
  6. Click Save & Close.

For readability, many people keep background transparent (or match the editor background) and only change the foreground. That avoids “muddy” contrast issues on light vs dark themes.

Step 4 — Install a theme (optional)

The quickest way to get a clean, modern syntax color set is to switch themes rather than hand-edit every token.

Rank #2
russell+hazel In Due Time Notepad Set, White, 3 Pads
  • Planning that fits your lifestyle get a handle on your week with our sophisticated weekly notepad set featuring crisp white pages with gold gilded edges
  • Organize your week the large weekly notepad is 10” by 7” with space to keep notes reminders and appointments for each day of the week
  • Check off your to-dones the medium lined and numbered notepad is 5” by 7” and has boxes to check off completed tasks
  • Capture every thought the smaller memo notepad is 2 5” by 7” and provides a blank canvas for notes reminders and memos
  • For many weeks to come each pad includes 80 sheets with a gummed top spine for easy removal
  1. Install Notepad++ themes (if needed) via the built-in theme manager.
  2. Open Settings → Style Configurator….
  3. Find the active theme profile (depending on your version, themes are typically applied through style settings).
  4. Apply a theme intended for your contrast preference (commonly “Dark” for night use).

If your version exposes theme packs differently, look for the theme/apply workflow inside the Style Configurator UI. The principle stays the same: apply a known style set, then tweak only what you dislike.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Step 5 — Make it automatic with file associations (optional)

If you always work with certain file types, file association saves time and prevents “plain text” results caused by wrong language mode.

  1. Go to Settings → Preferences….
  2. Open the File Association section.
  3. Add or edit an association for an extension (example: .py → Python, .js → JavaScript).
  4. Save changes (apply/OK).

From then on, opening a .py file should automatically select Python mode and apply syntax highlighting.

Option B: Use Notepad3 for lightweight highlighting

Notepad3 is a fast alternative that behaves like a Notepad replacement and can provide syntax highlighting depending on configuration and installed language definitions.

Exact menu names vary by version, but the workflow is consistent: set language mode, then check style settings for tokens.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure language mode and colors

  1. Open the code file in Notepad3.
  2. Find the language selection (often under Language or similar).
  3. Select your language (for example, Python or HTML).
  4. Open style or color settings (often under Settings / Preferences).
  5. Adjust token colors if the defaults don’t match your theme.

If Notepad3 doesn’t colorize as expected, confirm that the language module is available and that you actually selected the correct language mode (not just “Plain Text”).

Option C: Use VS Code as a Notepad-style editor

VS Code isn’t “Notepad,” but it delivers high-quality syntax highlighting, consistent language services, and strong theming. If you want one editor that scales from quick edits to real development, it’s a strong option.

Enable language-based highlighting and themes

  1. Install Visual Studio Code.
  2. Open your file.
  3. In the bottom-right language indicator (shows something like Plain Text), click it and select your language (example: JavaScript).
  4. Go to File → Preferences → Color Theme and choose a theme with good contrast.
  5. If needed, install a language extension for specialized highlighting (for example, SQL dialects or framework-specific languages).

VS Code’s highlighting is generally robust because it’s tied to language identifiers and extensions, not just a single style profile.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common problems and troubleshooting

Most “syntax highlighting doesn’t work” issues are caused by one of three things: wrong language mode, style colors set to match the background, or an editor/theme conflict.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

File shows plain text (no colors)

  1. Check the editor’s language mode (Notepad++: Language menu).
  2. Open Settings → Style Configurator… and verify token colors for that language aren’t empty or identical to the background.
  3. Switch to a known working theme, then test again.

Wrong language mode selected

Common example: opening a .js file but it’s treated as JSON or Plain Text. Fix it by explicitly selecting the language mode from the Language menu in Notepad++ (or the bottom-right language indicator in VS Code).

Colors look washed out or too bright

  1. Choose a different theme (dark vs light) rather than changing every token.
  2. If you customize manually in Notepad++, adjust only foreground colors for Keywords, Strings, and Comments for readability.

Washed-out colors often come from low contrast between background and foreground.

Custom theme or settings revert

This can happen if you switch profiles or reinstall/upgrade without preserving settings. In Notepad++, confirm you saved changes in Style Configurator…. If the issue started after an update, re-apply your theme and re-check language style settings.

Performance issues on big files

For very large files (tens of MB), syntax highlighting can slow down. If you see lag, try:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Testing performance after selecting the correct language (wrong modes sometimes trigger slower parsing).
  2. Switching to a simpler theme.
  3. Considering an editor setting that reduces background processing (varies by app/version).

Security and compatibility notes

  • Only install extensions/themes from reputable sources. Themes can be safe, but third-party theme packs vary in quality.
  • When opening files from untrusted sources, be careful with any editor features that execute code (VS Code can run tasks/debug; Notepad++ generally doesn’t execute code just by opening it).
  • Language definition quality varies by editor. If highlighting is missing for a niche language, you may need a language extension (VS Code) or a user-defined language (Notepad++).

FAQ

Can I add syntax highlighting to the built-in Windows Notepad?

No. Windows Notepad doesn’t provide a supported plugin system for syntax highlighting. You can change font and wrapping, but not implement keyword/string/comment colorization.

Does Notepad++ support syntax highlighting automatically?

It can. If file associations are set (or the extension matches known mappings), Notepad++ will choose the correct language mode and apply syntax highlighting. Otherwise, you’ll need to select the language manually from the Language menu.

Why are comments or strings the wrong color?

That usually means the style settings for that token type are customized (or reset) for the selected language. Check Settings → Style Configurator… and update Comments and Strings styles.

Will themes affect all languages?

Typically yes—themes provide a style baseline. But if you’ve customized individual token colors per language, your customizations can override theme defaults for those specific tokens.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Which option is best if I want the simplest setup?

Notepad++ is usually the best balance: install once, pick language mode, and optionally set file associations. VS Code is more powerful but takes a bigger footprint and more setup.

Bottom Line

If you’re specifically trying to configure syntax highlighting in the Windows Notepad app, the answer in 2024 is simple: you can’t. Notepad doesn’t support syntax highlighting.

To get the real colored-code experience, use Notepad++ and configure language mode, then fine-tune token colors via Settings → Style Configurator…. If you want an even more capable editor, VS Code offers stronger language support and theming with minimal effort.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.