Home Download Buy Blog Forum Support

PHP indent help PLEASE [st3]

PHP indent help PLEASE [st3]

Postby ecurtis on Fri Mar 15, 2013 8:15 pm

I am a happy user except my main langage is php and the auto-indent is broken and it is driving me crazy.

I get this:
Code: Select all
      <div class="contentColumn">
         <?php if (have_posts()) : ?>
         <?php while (have_posts()) : the_post(); ?>
         <article class="blogExcerpt clearfix">
            <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
            <?php the_content('more'); ?>
         </article>
      <?php endwhile; ?>
   <?php else : ?>
   <p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>


But I want this:
Code: Select all
      <div class="contentColumn">
         <?php if (have_posts()) : ?>
            <?php while (have_posts()) : the_post(); ?>
               <article class="blogExcerpt clearfix">
                  <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
                  <?php the_content('more'); ?>
               </article>
            <?php endwhile; ?>
         <?php else : ?>
            <p>Sorry, but you are looking for something that isn't here.</p>
         <?php endif; ?>
      </div>
ecurtis
 
Posts: 5
Joined: Mon Sep 24, 2012 12:26 am

Re: PHP indent help PLEASE [st3]

Postby Mattrick88 on Mon Mar 18, 2013 10:58 pm

Unfortunately still an issue with Sublime, anybody already find an issue for this?
Mattrick88
 
Posts: 4
Joined: Mon Mar 18, 2013 10:18 pm

Re: PHP indent help PLEASE [st3]

Postby ecurtis on Wed Mar 20, 2013 12:38 am

No way to edit the indenting rules? Think it might have something to do with the parans
ecurtis
 
Posts: 5
Joined: Mon Sep 24, 2012 12:26 am

Re: PHP indent help PLEASE [st3]

Postby Mattrick88 on Wed Mar 27, 2013 1:19 pm

No i tried almost everything in the settings pane. It really is an annoying bug especially for wordpress and magento developers.

Also i don't know why it takes so long to fix this? It seems a small thing to fix to me.
Mattrick88
 
Posts: 4
Joined: Mon Mar 18, 2013 10:18 pm

Re: PHP indent help PLEASE [st3]

Postby Rachana on Wed Apr 17, 2013 7:17 am

Whats the support like for large files? I routinely deal with fairly large files (Up to 1gb) – and find the handling of files as small as 50mb to be quite painful in ST2, and was one of the reasons I stopped using it Searching and loading is really bad compared to Emacs and Notepad++.
Rachana
 
Posts: 1
Joined: Wed Apr 17, 2013 7:10 am
Location: USA

Re: PHP indent help PLEASE [st3]

Postby atomi on Thu Apr 18, 2013 3:07 am

edit tmPreferences file in your PHP package, you can override the dafaults by putting the file in your packages directory.
Use the keys increaseIndentPattern decreaseIndentPattern
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: PHP indent help PLEASE [st3]

Postby chrisremo on Wed May 15, 2013 1:07 am

Is the current default behavior intended or a bug?

I switched to the ST3 beta today and the lack of smart HTML/PHP auto-indentation already seems like a big weakness. I'm constantly having to indent and un-indent lines.

I had ST2 going for so long, though, that I'm not actually sure if the behavior I'm accustomed to was stock or due to some package or extension I installed. I'm pretty sure it was just stock.
chrisremo
 
Posts: 2
Joined: Fri Oct 05, 2012 11:38 pm

Re: PHP indent help PLEASE [st3]

Postby svenax on Wed May 15, 2013 6:21 pm

Rachana wrote:Whats the support like for large files? I routinely deal with fairly large files (Up to 1gb) – and find the handling of files as small as 50mb to be quite painful in ST2, and was one of the reasons I stopped using it Searching and loading is really bad compared to Emacs and Notepad++.

Are you editing gigabyte sized PHP files? That's pretty amazing. Otherwise, this thread is not the right place for that question.
svenax
 
Posts: 152
Joined: Tue Dec 20, 2011 12:47 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], koan and 12 guests