Line numbers

This commit is contained in:
2026-05-07 16:28:23 +09:00
parent ca933a33db
commit 1c59ed413a
+2
View File
@@ -97,6 +97,8 @@ new(Parent) ->
[{face, "Monospace"}]),
SetMonospace = fun(Style) -> wxStyledTextCtrl:styleSetFont(STC, Style, Mono) end,
ok = lists:foreach(SetMonospace, styles()),
ok = wxStyledTextCtrl:setMarginType(STC, 0, ?wxSTC_MARGIN_NUMBER),
ok = wxStyledTextCtrl:setMarginWidth(STC, 0, 40),
ok = wxStyledTextCtrl:styleSetFont(STC, ?wxSTC_STYLE_DEFAULT, Mono),
ok = set_colors(STC),
STC.