Skip to content

[BUG] The tabs in contextMenu.xml no longer behave as they used to #17467

@SubActif

Description

@SubActif

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

Previously, to specify Notepad++ context menu shortcuts, a simple tab between the shortcut text and the shortcut itself was enough to right-align them. Now, this only creates a single space.

Steps To Reproduce

  1. Use a custom "contextMenu.xml" file like:
    <NotepadPlus>
    <ScintillaContextMenu>
    <Item MenuEntryName="Edit" MenuItemName="Cut" ItemNameAs="Couper Ctrl+X" /><!-- tabulation before shortcut in ItemNameAs -->
    <Item MenuEntryName="Edit" MenuItemName="Copy" ItemNameAs="Copier Ctrl+C" />
    <Item MenuEntryName="Edit" MenuItemName="Paste" ItemNameAs="Coller Ctrl+V" />
    <Item MenuEntryName="Edit" MenuItemName="Delete" ItemNameAs="Supprimer Suppr" />
    <Item MenuEntryName="Edit" MenuItemName="Select all" ItemNameAs="Sélectionner tout Ctrl+A" />
    </ScintillaContextMenu>
    </NotepadPlus>
  2. Restart Notepad++
  3. Right Click on window to show context Menu (in notepad++)

Current Behavior

Before all shortcut were aligned to the right (one tabulation = right align)

Image

Expected Behavior

Now all are just separate by one space form the Item Name (one tabulation = one space only)

Image

Debug Information

Notepad++ v8.9.1   (64-bit)
Build time: Jan 18 2026 - 22:45:31
Scintilla/Lexilla included: 5.5.8/5.4.6
Boost Regex included: 1_90
pugixml included: 1.15
nlohmann JSON included: 3.12.0
Path: C:\Program Files\Notepad++\notepad++.exe
Command Line: 
Admin mode: OFF
Local Conf mode: OFF
Cloud Config: C:\Users\Username\OneDrive\Applications\Notepad++
Periodic Backup: OFF
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: ON
Display Info:
    primary monitor: 1920x1080, scaling 100%
    visible monitors count: 3
    installed Display Class adapters: 
        0000: Description - NVIDIA GeForce RTX 5070
        0000: DriverVersion - 32.0.15.9186
        0001: Description - AMD Radeon(TM) Graphics
        0001: DriverVersion - 32.0.21030.2001
OS Name: Windows 11 Home (64-bit)
OS Version: 25H2
OS Build: 26200.7705
Current ANSI codepage: 1252
Plugins: 
    CodeAlignmentNpp (14.1.107)
    DSpellCheck (1.5)
    mimeTools (3.1)
    NppConverter (4.7)
    NppExport (0.4)
    Remove Duplicate Lines (1.3)
    XMLTools (3.1.1.13)
    _CustomizeToolbar (5.3)

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions