linux - Virtual brackets in Python -


(warning: potential flame-war starter. not goal, point here not discuss design choices of python, know how make best out of it).

is there program, script, method (unix-based, ideally), display "virtual" brackets around blocs of code in python, , keep them code can still executed if indenting broken ?

i realize python uses indentation define blocks of code, , final program may not contain brackets.

however, find annoying program can stop functioning because of unfortunate , undetected carriage-return.

so, ideally looking plugin in text editor (kate, gedit...) would:

  • display virtual brackets around blocks of code in python program
  • keep them in place
  • generate dynamically "correct" python code indentation corresponding brackets belong.

(no flame-war, please !)

i used editor code rollups , understood python syntax, looked rollups in unexpected locations. don't remember if kate that. it's not obvious there issue, makes easier when looking issue.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -