Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 09, 2016, 05:42:24 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Auto close tags  (Read 2653 times)

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 1,881
    • View Profile
    • Donate to Member
Auto close tags
« on: November 17, 2009, 03:51:04 PM »
Continuing my ongoing pointless questions

Does anybody know of a freeware html or text editor that has support for automatically inserting closing tags?
I type the h1 tag for example, add the text and then the closing tag is added automatically. Vim I believe does that using Ctrl+X+O, are there any free software that do the same or similar?

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,606
    • View Profile
    • Donate to Member
Re: Auto close tags
« Reply #1 on: November 17, 2009, 04:15:58 PM »
can't comment on the editor side of things (HTML Kit may be worth a look) but you could certainly do this with a 'hotstrings' tool that replaces typed occurrences with the full string (ie opening and closing tags)

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 1,881
    • View Profile
    • Donate to Member
Re: Auto close tags
« Reply #2 on: November 17, 2009, 04:36:36 PM »
Currently I am doing something somewhat crude, sending keys using powerpro, it's like pre-saving some common closing tags and pasting them with a click when one is needed. Regarding HTML-Kit, I tried this but it didn't work on my machine, not really sure why.

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,606
    • View Profile
    • Donate to Member
Re: Auto close tags
« Reply #3 on: November 17, 2009, 05:05:55 PM »
what i'd probably suggest (if you can't find an editor with this functionality built in) is an autotext type utility that will replace one typed string with another, eg typing <table> would trigger the script to replace that entry with <table></table>

There are any number of these available, or you could use an AHK script (you would need to provide a list of the common tags) 

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,100
    • View Profile
    • Donate to Member
Re: Auto close tags
« Reply #4 on: November 17, 2009, 05:07:00 PM »
NotePad++ does automagically close tags...but only for XML (by default). Maybe it's worth to take a look at their plug-ins.

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
    • View Profile
    • Donate to Member
Re: Auto close tags
« Reply #5 on: November 17, 2009, 05:27:08 PM »
Notepad2 auto closes HTML and XML tags, if you enable it under "Settings" -> "Auto close HTML/XML"

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,606
    • View Profile
    • Donate to Member
Re: Auto close tags
« Reply #6 on: November 17, 2009, 05:31:12 PM »
as does notepad++ (under TextFX -> TextFX Settings -> Autoclose XHTML/XML tags)
« Last Edit: November 17, 2009, 05:33:07 PM by Target »

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 1,881
    • View Profile
    • Donate to Member
Re: Auto close tags
« Reply #7 on: November 17, 2009, 05:56:50 PM »
So many options I should have already known about :-[

Thank you everybody :)

sri

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 677
    • View Profile
    • Sridhar Katakam
    • Read more about this member.
    • Donate to Member
Re: Auto close tags
« Reply #8 on: November 17, 2009, 10:34:31 PM »
EditPlus can do as well.

EP.png
<a href="https://sridharkatakam.com">My blog</a>