Hi,

Le 25/02/2012 21:16, klo uo a écrit :
> I got to probable candidate - STYLE_LINENUMBER, while searching /src/
> folder for "line.?number"
> and file "highlighting.c:798":
> 
>         set_sci_style(sci, STYLE_LINENUMBER, GEANY_FILETYPES_NONE,
> GCS_MARGIN_LINENUMBER);
> 
> Any comment should I look elsewhere or so?
> I don't know C/C++ to find my way

Around that place would be fine, dumb patch attached. [1]  It's a hack,
but it should do what you want.

I'm not convinced that having a different font and/or size make sense,
so I'm not sure adding a setting for that would be useful.

Regards,
Colomban


[1] BTW if anybody knows why setting the different size in
editor_set_font() doesn't work, I'd very much like to be told about it.
 Actually it works if setting a new font size in the prefs, but not at
startup.  I didn't spend time on it, but it still looks weird to me.
diff --git a/src/highlighting.c b/src/highlighting.c
index f4ef6f9..697e9e7 100644
--- a/src/highlighting.c
+++ b/src/highlighting.c
@@ -796,6 +796,7 @@ static void styleset_common(ScintillaObject *sci, guint ft_id)
 	SSM(sci, SCI_SETFOLDMARGINCOLOUR, 1, invert(common_style_set.styling[GCS_MARGIN_FOLDING].background));
 	SSM(sci, SCI_SETFOLDMARGINHICOLOUR, 1, invert(common_style_set.styling[GCS_MARGIN_FOLDING].background));
 	set_sci_style(sci, STYLE_LINENUMBER, GEANY_FILETYPES_NONE, GCS_MARGIN_LINENUMBER);
+	SSM(sci, SCI_STYLESETSIZE, (uptr_t) STYLE_LINENUMBER, SSM(sci, SCI_STYLEGETSIZE, (uptr_t) STYLE_LINENUMBER, 0) - 2);
 	set_sci_style(sci, STYLE_BRACELIGHT, GEANY_FILETYPES_NONE, GCS_BRACE_GOOD);
 	set_sci_style(sci, STYLE_BRACEBAD, GEANY_FILETYPES_NONE, GCS_BRACE_BAD);
 	set_sci_style(sci, STYLE_INDENTGUIDE, GEANY_FILETYPES_NONE, GCS_INDENT_GUIDE);
_______________________________________________
Geany mailing list
[email protected]
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany

Reply via email to