Skip to content

[BUG] Some comments in TCL files are not highlighted #17315

@Tey

Description

@Tey

Is there an existing issue for this?

  • I have searched the existing issues

Is the issue reproducible in Notepad++ without plugin?

  • I have tried Notepad++ without plugin

Is the issue reproducible in portable version of Notepad++?

  • I have tried portable version of Notepad++

Does the issue affect SciTE?

  • I have tried SciTE

Description of the Issue

There are 4 types of comments for the TCL syntax highlighting:

  • COMMENT: '#' followed by the comment text at the end of an instruction line.
  • COMMENT LINE: '#' at the start of a line (with optional leading space characters), followed by the comment text.
  • COMMENT BOX: '#' followed by either '#' or '-' at the start of a line (no leading space characters), followed by the comment text.
  • BLOCK COMMENT: '#' followed by '~' and the comment text.

There are style settings for all of them in NPP, but no matter the configuration for the last 2, they are always rendered as normal text. This works well in SciTE.

Steps To Reproduce

  1. File -> New
  2. Language -> TCL
  3. Write the following code in the file:
set x "" ;# This is an inline comment

# This is a comment line

#~ This is a comment block

## This is comment box

Current Behavior

The last 2 comment lines are rendered as normal text.

Expected Behavior

The last 2 comment lines should be rendered as configured in the Style Configurator (in turquoise with the default config).

Debug Information

Notepad++ v8.8.9   (64-bit)
Build time: Dec  8 2025 - 00:04:32
Scintilla/Lexilla included: 5.5.8/5.4.6
Boost Regex included: 1_85
Path: E:\Users\me\Downloads\npp.8.8.9.portable.x64\notepad++.exe
Command Line: 
Admin mode: OFF
Local Conf mode: ON
Cloud Config: OFF
Periodic Backup: ON
Placeholders: OFF
Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1)
Multi-instance Mode: monoInst
asNotepad: OFF
File Status Auto-Detection: cdEnabledNew (for current file/tab only)
Dark Mode: OFF
Display Info:
    primary monitor: 1920x1080, scaling 100%
    visible monitors count: 2
OS Name: Windows 10 Pro (64-bit)
OS Version: 22H2
OS Build: 19045.6691
Current ANSI codepage: 1252
Plugins: 
    mimeTools (3.1)
    NppConverter (4.7)
    NppExport (0.4)

Anything else?

NPP vs SciTE:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglanguage-supportIssues or PRs related to programming languages (also e.g. in styles, themes)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions