Author Topic: Line spacing in editor  (Read 13539 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: 6219
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Line spacing in editor
« Reply #1 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.
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9730
Re: Line spacing in editor
« Reply #2 on: Today at 08:12:15 am »
Is there a setting to increase the line spacing in the editor?
This is implemented in SVN revision 13860. Thanks for asking, but next time maybe you use our bug-tracker.
Starting with the next nightly you can give it a try!

Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ