Re: [gedit-list] smart indentation plugin

I finished a rudimentary smart indentation plugin (emacs-like tabbing indentation) for gedit. It uses the pygments library to parse text, which is then put into a basic tree depending on parentheses and brackets. Certain keywords can also affect indentation.

It's fairly short, messy, and towards the bottom of files parsing gets slow (since all text to that point is reparsed each time.) It indents C/C++/Java and Python. I don't know how difficult it is to extend for other languages, and I'm sure someone else could do better, but it's here if anyone wants to make use of it/improve it. It's at
-George Schneeloch

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]