Author Topic: Elastic Tabstops - great feature  (Read 3197 times)

Offline Aradayn

  • Single posting newcomer
  • *
  • Posts: 8
Elastic Tabstops - great feature
« on: February 13, 2011, 04:11:43 pm »
This guy's got a solution to the eternal war between tabs and spaces that I think is very elegant:

http://nickgravgaard.com/elastictabstops/

You can even try it out on the page. Having this feature in Code::Blocks would be great.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11199
    • Travis build status
Re: Elastic Tabstops - great feature
« Reply #1 on: February 13, 2011, 04:16:18 pm »
I've read about it, but the C::B devs could do nothing about it, because C::B uses wxScintilla for the editors.
Probably you could show this to the Scintilla devs and if they say they can implement it.
C::B will get it almost for free.... :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Elastic Tabstops - great feature
« Reply #2 on: February 13, 2011, 08:39:27 pm »
I've read about it, but the C::B devs could do nothing about it, because C::B uses wxScintilla for the editors.
Probably you could show this to the Scintilla devs and if they say they can implement it.
C::B will get it almost for free.... :)
I just found this thread:
http://groups.google.com/group/scintilla-interest/browse_thread/thread/44fca717735f860e
As far as I can sse, there is not much interest of scintilla developpers to implement it.

Offline veksha

  • Single posting newcomer
  • *
  • Posts: 1
Re: Elastic Tabstops - great feature
« Reply #3 on: September 15, 2018, 12:48:49 am »
Hello, can we finally have this cool feature since scintilla has it?

http://nickgravgaard.com/elastic-tabstops/scintilla-implementation


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5109
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Elastic Tabstops - great feature
« Reply #4 on: September 15, 2018, 02:51:02 am »
https://github.com/nickgravgaard/ElasticTabstopsForScintilla/blob/master/README.md

It is already in scintilla 3.5.0

So, C::B' scintilla should have this feature too, not sure we use it or not
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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11199
    • Travis build status
Re: Elastic Tabstops - great feature
« Reply #5 on: September 15, 2018, 02:57:13 am »
Cool, but this isn't something that is on-off thing.
Scintilla has just the building blocks for such implementation, but someone needs to spend time implementing it...
Patches welcome as always, but make sure to test them with at least a 1000 line files.  8)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]