Home Download Buy Blog Forum Support

Breaking fold with comment inside

Breaking fold with comment inside

Postby Pyton_000 on Wed Mar 27, 2013 9:35 am

Hello.

I've downloaded trail of Sublime Text 2 and it's great, but...

I'm using it to with PHP files and there is a problem with folding with comment inside brackets.
Ex.
Code: Select all
if($a==$b) {
  some text
// comment
  again text
}


If there is a comment like this folding work from first bracket to comment.
If comment identation is same as text it works good.

Sorry for my bad language :)
Pyton_000
 
Posts: 2
Joined: Wed Mar 27, 2013 9:30 am

Re: Breaking fold with comment inside

Postby Pyton_000 on Sun Mar 31, 2013 5:20 pm

Can some help with that problem?
Pyton_000
 
Posts: 2
Joined: Wed Mar 27, 2013 9:30 am

Re: Breaking fold with comment inside

Postby skuroda on Sun Mar 31, 2013 7:16 pm

The built in code folding is simple and just based on tabs. You will have to find some plugin to do it better. Unfortunately, I don't know of any off the top of my head.
skuroda
 
Posts: 687
Joined: Fri Oct 05, 2012 8:11 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 23 guests