Auto closing tags in gedit -- can a man dream?

3.1k views Asked by At

Top of the morning to y'all.

I recently switched to Debian and I'm finding gedit 3 to be a worthy replacement for notepad++.

I have one complaint though: I can't find a plugin which will close tags for me.

Example:

When I type the following

<p>

As soon as I type the ending >, I want </p> to be inserted.

<p>_</p>

The cursor should remain between the two tags, where I placed the _ character.

Anything that'll do this for me?

PS: Please resist the urge of telling me to man up and just use vim/emacs :(

3

There are 3 answers

1
Bartek On

maybe try Geany?

Please look at the Geany snippets video.

0
Tapper On

It might be beyond your dreams, but there is Zen coding out there giving you an intelligent autocomleting syntax. There are two ports for gedit from fmarcia and mikecrittenden.

0
Jens Nyman On

The gedit plugin "intelligent text completion" inserts the appropriate closing tag at the insertion of "</" just like Macromedia Dreamweaver. This functionality comes close to what you describe.

(Video)