News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Elastic Tabstops - great feature

Started by Aradayn, February 13, 2011, 04:11:43 PM

Previous topic - Next topic

Aradayn

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.

oBFusCATed

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!]

Jenna

Quote from: oBFusCATed 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.... :)
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.

veksha


ollydbg

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.

oBFusCATed

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!]