Jump to content

netbeans teething troubles


Recommended Posts

lines shouldn't really exceed 80 chars long when programming IMO

Is there any particular reason, or is it just for neatness? (it's only the html output which tend to be long lines i've found)

 

About the theme...

I learnt html and php in Crimson Editor and it nicely puts any content between double or single inverted commas in a different colour, i found it really handy as it made stuff like  ucfirst($_POST['field']) be in 3 different colours like: ucfirst($_POST['field']). I can't seem to get the netbeans to do that as it combines inverted commas and general strings into the same box called String.

 

**but then on the otherhand crimson doesn't offer variables or tell your where they are in the script... etc

Link to comment
Share on other sites

Ah i see.

 

Sorry i think you misunderstood. I have downloaded the PHP version and it does highlight syntax but it lumps inverted commas into the same bag a String (unless i am mistaken).

 

An example of the same script from in crimson and netbeans:

 

crimson  -  <form name="basics"

 

netbeans - <form name="basics"

 

As you can see, crimson highlights the double inverted commas seperately to the rest of the String where as Netbeans doesn't. I just found this really helpfull in Crimson as it really makes things jump out of the page a little more. Mind, it is the only thing (along with word wrap) crimson has that netbeans doesn't.

 

Link to comment
Share on other sites

If you go into Tools > Options and go to Fonts & Colors you can adjust the colors to your liking. Change the Language from All Languages to PHP and scroll down to find string. Of course, it'll also affect strings inside the heredoc, which you'll see in the example.

Link to comment
Share on other sites

Hi Project Fear,

 

Ahh, yes that's what i mean now you mention it. I couldn't see it before, thanks... Is there anyway of stopping it affect everything inside the heredoc or is it one or the other? I mean i suppose technically the heredoc is a big string, however when you have one set of <?php ?> doing everthing, then most of the html output is via the heredoc.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.