Jump to content


Photo

code coloring


  • Please log in to reply
11 replies to this topic

#1 Henster

Henster
  • Members
  • Pip
  • Newbie
  • 6 posts

Posted 17 March 2005 - 10:24 AM

Sometimes dreamweaver gets really confused about the code colouring. For example....
/"test/"
it would miss out one of the slashes and then get completely confused later and the quotation marks dont add up. Get what I mean? Stuff like that.

I'm using MX. I tried MX 2004 but I find its even worse. Does anynody else get this. Or, can anyone suggest a package that parses the syntax properly? I'm not so keen on a simple text editor (I like the file tree on the side of the screen).

Cheers
H

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 17 March 2005 - 10:39 AM

I use MX 2004 and can't say I have ever noticed that problem, but I rarely escape quotation marks, I normally use the single quotation marks.

#3 Henster

Henster
  • Members
  • Pip
  • Newbie
  • 6 posts

Posted 17 March 2005 - 10:46 AM

How about...

<?php

/////// COMMENT ////////

phpinfo();

?>

In MX <?php turns up as red and the comment as yellow. Which I quite like. In MX 2004 everythings just blue. Strings in quotes go red I think. I've tried changing the colors but to no avail.

Are you getting a red <?php in MX 2004 ?

Cheers
H

#4 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 17 March 2005 - 01:09 PM

Yes, in MX 2004 I get the <?php and ?> in red, and comments in yellow.

I think your getting them in blue because you are starting your document as a HTML document, when doing that all php code will turn blue until you save it as a php document.

To get your php syntax coloured from the start, when starting a new document, select the type as dynamic from the left hand side, then in the right hand side select PHP. All your code will now be coloured from the start.

#5 Zane

Zane
  • Administrators
  • Advanced Member
  • 4,134 posts

Posted 17 March 2005 - 02:50 PM

Sometimes dreamweaver gets really confused about the code colouring. For example....

/"test/"
it would miss out one of the slashes and then get completely confused later and the quotation marks dont add up. Get what I mean? Stuff like that.

I'm using MX. I tried MX 2004 but I find its even worse. Does anynody else get this. Or, can anyone suggest a package that parses the syntax properly? I'm not so keen on a simple text editor (I like the file tree on the side of the screen).

Cheers
H

View Post


I don't know if anyone noticed ot not...but your slashes are backwards
meaning.......they are

/

when they should be

\


if you wanted to escape the quotation marks

that could be why the coloring is off

btn_donate_SM.gif Want to thank me? Contribute to my PayPal piggy-bank
 

172938.png

#6 Henster

Henster
  • Members
  • Pip
  • Newbie
  • 6 posts

Posted 17 March 2005 - 04:25 PM

Thanks SemiApocalyptic. I'll give it a try when I get home.

Hohum. Sorry about the slashes. Moment of madness. They do look very similar.....

-H

#7 Henster

Henster
  • Members
  • Pip
  • Newbie
  • 6 posts

Posted 17 March 2005 - 11:27 PM

Hey zanus,

"Remember, nothing says 'good job' like a firm, open-palm slap on the behind."

Thats family guy! The one were peter turns into a women.... I love that show.

-H

#8 Zane

Zane
  • Administrators
  • Advanced Member
  • 4,134 posts

Posted 18 March 2005 - 12:58 AM

Hey zanus,

"Remember, nothing says 'good job' like a firm, open-palm slap on the behind."

Thats family guy! The one were peter turns into a women.... I love that show.

-H

View Post

heh....join the club

i love that show too
that and aqua team,and a bunch of weird-ass cartoons


......So......can anyone figure out where they top quote is from?
a gmail invite for the winner....lol
like you couldn't just google it out......sorry had to find a way to give em out somehow

I guess I can offer one to henster for finding out the origin of the earlier mentioned quote
......want it?

btn_donate_SM.gif Want to thank me? Contribute to my PayPal piggy-bank
 

172938.png

#9 blargnoobman

blargnoobman
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 18 March 2005 - 08:35 PM

heh....join the club

i love that show too
that and aqua team,and a bunch of weird-ass cartoons
......So......can anyone figure out where they top quote is from?
a gmail invite for the winner....lol
like you couldn't just google it out......sorry had to find a way to give em out somehow

I guess I can offer one to henster for finding out the origin of the earlier mentioned quote
......want it?

View Post


According to Google... Lewis Black, a comedian.

/me would like that invite. :)

#10 czambran

czambran
  • Staff Alumni
  • Advanced Member
  • 52 posts
  • LocationFairfield,IA

Posted 18 March 2005 - 08:52 PM

YOu should try ZDE(Zend Development Environment).
Chris
Using undefined variables in PHP is not an error, just sloppy coding practice. PHP5 Power Programming BOOK
--------------------------------------------------------------------------
PHP F.A.Q.
Linux User #394154

#11 digiuser6

digiuser6
  • Members
  • Pip
  • Newbie
  • 3 posts
  • LocationPoland

Posted 22 March 2005 - 08:50 PM

I agree with czambran you should use ZDE. That's the best editor i've seen.
Speed is a byproduct of accuracy

#12 Zane

Zane
  • Administrators
  • Advanced Member
  • 4,134 posts

Posted 22 March 2005 - 09:18 PM

/me would like that invite. :)

View Post


send an email to dockeryz(AT)gmail(DOT)com
and I'll hook you right up

btn_donate_SM.gif Want to thank me? Contribute to my PayPal piggy-bank
 

172938.png




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users