Home Download Buy Blog Forum Support

PHP Switch Case Indent

PHP Switch Case Indent

Postby duydangle on Tue Nov 13, 2012 4:20 am

I wonder why in sublime text 2 the switch case does not indent properly?
Normal I like this:
switch () {
case '...':
.........;
.........;
break;
.....
}
But in sublime text 2 it's like:
switch () {
case '...':
.........;
.........;
break;
.....
}

How can we fix this. And one more question: How can I specify which tags/sub-tags in HTML do not indent?
like
<html>
<head>

</head>
<body>
<div>
</div>
</body>

In sublime text, the <div> in <body> tag is indented, while I don't want that.
duydangle
 
Posts: 7
Joined: Sun Jul 29, 2012 3:30 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 27 guests