May 6, 200917 yr Hi guys I have made a simple script to compliment my website and have not yet got sufficient funds for coda (feel free to buy it for me ) so wondered what simple methods you guys use to keep track of your curly brackets? Thanks
May 6, 200917 yr Author Silly billy! I use Smultron which i love - maybe there is a way there but haven't figured it out yet.....
May 6, 200917 yr I'm serious. Macs just hamper your creativity. They're over-priced, over-rated junk Not having used a mac for development for several years, I have no constructive advice lol. Just thought I'd do a bit of early morning Mac bashing
May 6, 200917 yr Author Hah found it. Smultron highlights matching brackets or if it doesnt find any it makes a noise. What does your wonderful pc do then Mr Mac Basher?
May 6, 200917 yr There's nothing wrong with a Mac - ignore him. Anyway, use 4 spaces instead of tabs, then you can keep track by where they are. <?php class feeds { function __construct() { } function process($data) { $db = db::getSingleton(); $map_fields = fields::getMapFields(); // INNER FUNCTION function save($rows) { global $db, $map_fields; foreach ($rows AS $row) { $db->save($row[$map_fields]]) } return true; } Parser($data, 'save'); return true; } } ?> See this: Correctly spacing & indenting your code to make it readable
May 6, 200917 yr There's also TextWrangler on the Mac (which is also free). Notepad++ on Windows though!
May 6, 200917 yr Yeah tabbing lines is extremely useful (why did you say 4 spaces? as opposed to tabs? just curious?) Notepad++ which is beast, but gutted you don't have a budget pc just highlights the opening and closing brackets when you put the cursor on them, amongst a million other useful features (:
May 6, 200917 yr Actually tabbing is an issue in Dreamweaver on Mac as it's setup to tab 8 spaces by default. There's nothing wrong with having a Mac... ...If you can afford one... and ...you don't get viruses! For the record - I don't have a Mac, I have a Sony Vaio PC laptop.
May 6, 200917 yr Actually tabbing is an issue in Dreamweaver on Mac as it's setup to tab 8 spaces by default. You can change this though... Solved the problem for me I actually always code in DW - I never ever use the design view, but I find the coding side of it quite intuitive... also my company like me to work in DW for some reason... haha But I love it
May 6, 200917 yr Author Thanks for the input guys. LOL don't have dreamweaver don't intend to get it.
May 6, 200917 yr I've used dreamweaver since I was an HTML 4.0 newbie. People say don't use it bla bla (Then continue to arse lick notepad++ ). But I use it purely as a text editor... Don't think design view has been clicked in 5 years. I love the site management tools and the colour syntaxing (Something I know off the top of my head as I spend every day of my life staring at dreamweaver). My opinion - Dreamweavers is excellent (unless your a noob and hit design view). Other peoples opinion - One of them that will never get a solid answer as it's completely dow to personal opinion!
Create an account or sign in to comment