News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Line spacing in editor

Started by ron.dunn, March 03, 2026, 12:45:29 PM

Previous topic - Next topic

ron.dunn

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)

ollydbg

If you look at this file: sdk\wxscintilla\include\wx\wxscintilla.h

You will see some code snippet:


    // 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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.