Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何单独调整代码折叠标志的大小? #939

Open
code399 opened this issue Dec 17, 2024 · 2 comments
Open

如何单独调整代码折叠标志的大小? #939

code399 opened this issue Dec 17, 2024 · 2 comments
Milestone

Comments

@code399
Copy link

code399 commented Dec 17, 2024

你好,请问可以单独调整代码折叠标志的大小吗?在设置里加入 size:-2; 不起作用。谢谢。
现在的代码折叠标志大小是由行号的大小来控制的。

@zufuliu
Copy link
Owner

zufuliu commented Dec 17, 2024

Needs some code to support that.

notepad4/src/Notepad4.cpp

Lines 1653 to 1656 in 840401c

void UpdateFoldMarginWidth() noexcept {
const int width = bShowCodeFolding ? SciCall_TextWidth(STYLE_LINENUMBER, "+_") : 0;
SciCall_SetMarginWidth(MarginNumber_CodeFolding, width);
}

@zufuliu zufuliu added this to the v25.01 milestone Dec 17, 2024
@zufuliu
Copy link
Owner

zufuliu commented Dec 17, 2024

Implemented by commit 8e43a82, please test latest builds from https://github.com/zufuliu/notepad4/actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants