Skip to content

[BUG] UDL folding in code: middle doesnt fold #17954

@yeba01

Description

@yeba01

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

Not sure if its a bug or intended behaviour. I upgraded from version 8.7.5 to 8.9.3. On 8.7.5 i used UDL for markdown documents, and i put markdown header symbols # ## ### in folding code: middle. And i was able to fold document based on headings. In 8.9.3 it doesnt work like that, it folds nothing.

If its intended to work this way, is there any solution for my purpose? to fold md headings?

Steps To Reproduce

  1. put # ## ### in udl folding in code: middle section
  2. try to 'fold all' from menu or using shortcut in some markdown file

Current Behavior

nothing is folded

Expected Behavior

to fold content between headings

Debug Information

Notepad++ v8.9.3   (64-bit)
Build time: Mar 20 2026 - 00:44:25
Scintilla/Lexilla included: 5.6.0/5.4.7
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: OFF
WinGUp: present
disableNppAutoUpdate.xml: absent
Periodic Backup: OFF
Placeholders: ON
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: 1
    installed Display Class adapters: 
        0000: Description - NVIDIA GeForce RTX 2060
        0000: DriverVersion - 32.0.15.8157
OS Name: Windows 10 Pro N (64-bit)
OS Version: 22H2
OS Build: 19045.5487
Current ANSI codepage: 1252
Plugins: 
    ComparePlus (1.2)
    mimeTools (3.1)
    NppConverter (4.7)
    NppExport (0.4)
    NppMarkdownPanel (0.7.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