Showing posts with label View. Show all posts
Showing posts with label View. Show all posts

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.

Changing Caret in Sublime Text

I have recently started using Sublime text [Download] and I have got to say that I am impressed. It is the best text editor you can get. And, the best part is it has got a ton of customization. You get loads of plugins.

I started getting my hands dirty by changing the common cursor or the caret. To begin, open the preferences either by
01. Ctrl + Shift + P and type in "preferences:user" in the text box or
       02. Prefernces -> Settings -user. 


A new Text file is opened and you have to enter the following lines into it.
"caret_style": "phase",
Save the file and you can see that the cursor (or caret) is now fading in and out.

There are also many other options. You can try
  1. solid
  2. wide
  3. blink
  4. smooth
I posted the first thing that I learned. Let's see what else I learn. Catch you later. Until then. Adios.