I want to have Syntax Highlighting for jQuery and maybe when I type <html>
it can automatically insert </html>
. Is there anyway to make GEdit do this?
Asked
Active
Viewed 5,725 times
1 Answers
7
What the difference between jQuery syntax and JS syntax ? :)
For auto complete functionality you'll need to import jQuery snippets, just follow this guide (dead link)
For more intelligent JS coding in gedit I'll advice to use JSLint, look how to integrate it into gedit . You'll need to activate External Tools plugin.
Good luck to you with gedit and JS :) Really nice technologies.

Erman Kadir Kahraman
- 469
- 6
- 6

Mushegh A.
- 1,431
- 12
- 18
-
My main beef with GEdit is that it doesn't highlight `document`, or `window`. – Bob Dylan Oct 05 '09 at 19:58
-
2I'm running it in Ubuntu with Gnome so I don't know if it is a universal method. Gedit is using gtksourceview for syntax highlighting. All you need is edit file /usr/share/gtksourceview-2.0/language-specs/javascript.lang (you'll need root permissions) and add
window document there as object type nodes (if you like to highlight it as objects). Yes, and feel free to contact me if there are any issues at mushex@antarnian . – Mushegh A. Oct 05 '09 at 20:32 -
Thanks your last comment was extremely helpful. Now they `document` and `window` actually look like something special, instead of just another thing. – Bob Dylan Oct 08 '09 at 03:38
-
To add html tag completion, checkout zen coding plugin http://code.google.com/p/zen-coding/ for gedit. – Myth Mar 12 '11 at 05:58