Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

syntax checking/correcting on Geany 0.20

Tags:

editor

ide

geany

Since few days, I am experimenting with lots of Editors/IDEs. I am looking for good IDE for Python on my Ubuntu 11.04 machine. After trying almost all the IDEs, I finally ended with Geany 0.20.

Everything is working as my requirements except syntax checking/correcting. I also used Eclipse and I really liked syntax errors checking in it. Is there any plugin to check/correct syntax errors on Geany?

like image 916
chhantyal Avatar asked Aug 21 '26 15:08

chhantyal


2 Answers

Unfortunately, no, a plug-in like that does not exist. But, you can send your idea to their mailing list or develop it yourself then send it to them because I think many people would benefit from a plug-in like that(me being one of those people :).

like image 103
CupOfTea Avatar answered Aug 24 '26 12:08

CupOfTea


Expanding upon Vinoth.3v's answer, I implemented it via the following build command (not for python, but the concept is the same)

  • Build (menu bar)
  • Set Build Commands
  • Under 'Independent commands' beside 'Make' I set the command to "jshint %f"
  • Now under Edit -> Preferences -> Keybindings -> toward the bottom I set "Make all" to ctrl+g

with the above settings, I can hit ctrl+g to run jshint on the current file and have the output show up in the Compiler tab of the Messages Window. It's not quite red squiggly lines, but I never trusted those anyway.

like image 34
aaaaaa Avatar answered Aug 24 '26 13:08

aaaaaa