Welcome Guest, Not a member yet? Register   Sign In
Dreamweaver code coloring since 1.6.2 released
#1

[eluser]webdezzo[/eluser]
Hey all,

Love CI, been using it for a year or so now, but since 1.6.2 came out I noticed something funny. We use Dreamweaver as our choice IDE, but since 1.6.2, I noticed that dreamweaver will open the php files and everything will be color coded, but moving around in the editor, it will randomly change the color coding for the entire page to black. I think what is causing it is, prior to 1.6.2 there were closing php tags in everything (controllers, libraries etc etc) but now there is not. And while dreamweaver recognizes it at first, somehow its tweaking because no closing php tag?

Any ideas?

Thanks!
-wd
#2

[eluser]awpti[/eluser]
Yeah, get an IDE that isn't Dreamweaver.

Wink

I recommend phpDesigner or DEVPHP. DEVPHP is free, phpDesigner has a free (but useless) version and then a paid-for version which is absolutely fantastic.
#3

[eluser]MaDe[/eluser]
I got this one too in Dreamweaver, but it's no problem with CI, it's a Dreamweaver bug. I experienced the same problem with standard HTML pages and CI pages. Sometimes closing and opening Dreamweaver helped, sometimes not. Sometimes deleting the _notes directories helped, sometimes not.
#4

[eluser]Derek Allard[/eluser]
Dreamweaver (which incidentally is a darn fine editor) has trouble with the files having the closing ?> left off. You could add it back in if you wanted. I've also discovered that flipping from design to code view helps sometimes. Sort of "resets" it.
#5

[eluser]marcoss[/eluser]
It happens when you save the file and the HTML validation is run, just disable it.
#6

[eluser]Jim Higgins[/eluser]
I do the same thing Derek suggested... switching between Design and Code view... or I switch over to a different file really quick.

Also, I've noticed it happens much less frequently (nearly never) if, when I start a new file, I start that new file as a PHP type. In other words, make sure you're not starting your new files as HTML by default and just removing the default code and/or changing the extension at the end.
#7

[eluser]webdezzo[/eluser]
Hey guys, thanks for all the wonderful replies! While I do agree with Derek that Dreamweaver is a darn fine editor, I actually pulled down a copy of Aptana (based on Eclipse) and I must say, it seems really nice. It has all of the debug goodies and a lot of cool features, and doesn't have any issues with the CI codebase!

Woot!

- wd
#8

[eluser]Cambo[/eluser]
I use Eclipse with phpEclipse and it has no problems colour formatting either with or without the php closing tags.
#9

[eluser]ayukawaa[/eluser]
Hello, I'm now try to move everything at work to CI where they already have licence of Dreamweaver so they don´t want to start using another editor but...

¿has someone found solution for not having the closing php tag?

It's really annoying when everytime you save some document, move to another and then back to write and delete an space just to have Dreamweaver color coded the document again.

My buddys at work laugh and don't want to know anything of CI until I found a solution for the color coded.

¿Someone know how to make Dreamweaver to skip HTML validation ONLY FOR PHP FILES?
#10

[eluser]drewbee[/eluser]
Yeah. Also in your code if you hit enter and 'move' the code, the color will come back.

Good ol' DreamWeaver Smile




Theme © iAndrew 2016 - Forum software by © MyBB