Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ron.dunn on March 03, 2026, 12:45:29 pm

Title: Line spacing in editor
Post by: ron.dunn on March 03, 2026, 12:45:29 pm
Is there a setting to increase the line spacing in the editor?

In Scintilla it should be possible with the following functions, but I can't find equivalent settings.

SCI_SETEXTRAASCENT(int extraAscent)
SCI_SETEXTRADESCENT(int extraDescent)
Title: Re: Line spacing in editor
Post by: ollydbg on March 05, 2026, 03:06:53 am
If you look at this file: sdk\wxscintilla\include\wx\wxscintilla.h

You will see some code snippet:

Code
    // Set extra ascent for each line
    void SetExtraAscent(int extraAscent);

    // Get extra ascent for each line
    int GetExtraAscent() const;

But after searching, I see those 2 functions are not called by other clients, so my guess is that you need a way to call them.