Saturday, 16 November 2013

Reformatting HTML Code using Sublime Text

I work a lot with HTML and so does a lot of others, who blog often or design webpages. In all these cases, it almost becomes an inevitable process at the end, where you have to reformat your entire webpage's code (unless you have followed the formatting from the beginning or used a professional designer). For anyone who has done this manually, they can understand that it is a chore to perform manually.

I recently started using Sublime text and it has built-in methods to reformat the code.

Just follow the following steps:
  1. Select the entire text using Ctrl+A
  2. Go to Edit->Line->Reindent
  3. Presto. You are done.
Simple, but effective.

No comments:

Post a Comment