On Feb 9, 2010, at 7:43 PM, Boysenberry Payne wrote:
Was wondering if there was an easy way to get () and [] to indent the same way {} happen in my perl documents?
On Friday, February 12, 2010, at 04:35AM, "Boysenberry Payne" boysie@boysenberrys.com wrote:
Does anyone know where I'd even need to look to try and get the right kind of indentations set up for my perl scripts?
One idea would be to create a command bound to Return that tests for the brackets you want, then reindents accordingly. No idea if that's the best way or even a good way, but it's something to try.
Off the top of my head, there could be a Preferences item that might affect what characters trigger the indendation, or something along those lines anyway. Anyone with more experience developing bundles care to weigh in?
On Feb 11, 2010, at 8:34 PM, Adam Sharp wrote:
Off the top of my head, there could be a Preferences item that might affect what characters trigger the indendation, or something along those lines anyway. Anyone with more experience developing bundles care to weigh in?
Yes. Take a look at the “Miscellaneous” preferences in the “Source” bundle. These preferences already apply to Perl, but you could add your own preferences to your personal bundle that are scoped to only work on Perl code.