Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Curly Brackets

Featured Replies

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

  • Author

:p Silly billy!

 

I use Smultron which i love - maybe there is a way there but haven't figured it out yet.....

I'm serious. Macs just hamper your creativity. They're over-priced, over-rated junk :p

 

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 :)

  • 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? ;)

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

lol my PC does everything I need it to do. For a fraction of what a mac costs :p

There's also TextWrangler on the Mac (which is also free).

 

Notepad++ on Windows though!

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 :p just highlights the opening and closing brackets when you put the cursor on them, amongst a million other useful features (:

tab evrerything correctly and its not an issue ;)

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.

That's more of a dreamweaver issue I guess... General web standard is to tab :)

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 :)

  • Author

Thanks for the input guys.

 

LOL don't have dreamweaver don't intend to get it.

 

:)

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++ :p ). 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!

I use Notepad++. :) It's got everything I need/want plus more! :D

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.