freelance84 Posted September 3, 2010 Share Posted September 3, 2010 OK, i'm giving netbeans a go. Does anyone have a nice colour theme? Also, i can't seem how to find "wrap long lines"?? Quote Link to comment https://forums.phpfreaks.com/topic/212438-netbeans-teething-troubles/ Share on other sites More sharing options...
trq Posted September 3, 2010 Share Posted September 3, 2010 A nice color theme? Whats wrong with the default? Also, lines shouldn't really exceed 80 chars long when programming IMO. Netbeans should display a red line at 80 chars, don't go too far past there. Quote Link to comment https://forums.phpfreaks.com/topic/212438-netbeans-teething-troubles/#findComment-1106816 Share on other sites More sharing options...
dgoosens Posted September 3, 2010 Share Posted September 3, 2010 hi, the netbeans team is working on the line wrapping http://blogs.sun.com/netbeansphp/entry/line_wrapping_in_dev_builds It works, but it might be unstable from time to time... About the theme... Can't really help... The Ubuntu integration I am using suits me quite well and I never looked into changing it. Quote Link to comment https://forums.phpfreaks.com/topic/212438-netbeans-teething-troubles/#findComment-1106817 Share on other sites More sharing options...
freelance84 Posted September 3, 2010 Author Share Posted September 3, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/212438-netbeans-teething-troubles/#findComment-1106822 Share on other sites More sharing options...
trq Posted September 3, 2010 Share Posted September 3, 2010 Have you actually installed the php plugin for netbeans? It has syntax highlighting. As for the 80 chars. Its just an old rule from when programming was done in a terminal. Allot of projects still stick with this convention. Quote Link to comment https://forums.phpfreaks.com/topic/212438-netbeans-teething-troubles/#findComment-1106826 Share on other sites More sharing options...
freelance84 Posted September 3, 2010 Author Share Posted September 3, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/212438-netbeans-teething-troubles/#findComment-1106837 Share on other sites More sharing options...
JasonLewis Posted September 4, 2010 Share Posted September 4, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/212438-netbeans-teething-troubles/#findComment-1107220 Share on other sites More sharing options...
freelance84 Posted September 4, 2010 Author Share Posted September 4, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/212438-netbeans-teething-troubles/#findComment-1107253 Share on other sites More sharing options...
JasonLewis Posted September 5, 2010 Share Posted September 5, 2010 I guess it depends on how your application is set up. As far as I know you can't change the color of the heredoc. Just going to have to make do with it. Quote Link to comment https://forums.phpfreaks.com/topic/212438-netbeans-teething-troubles/#findComment-1107370 Share on other sites More sharing options...
freelance84 Posted September 6, 2010 Author Share Posted September 6, 2010 Cool, cheers for the help ProjectFear Quote Link to comment https://forums.phpfreaks.com/topic/212438-netbeans-teething-troubles/#findComment-1107809 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.