Author Topic: Line spacing in editor  (Read 454 times)

Offline ron.dunn

  • Single posting newcomer
  • *
  • Posts: 1
Line spacing in editor
« 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)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6187
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Line spacing in editor
« Reply #1 on: Yesterday at 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.
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.