Macromedia Dreamweaver Syntax Coloring

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
chris12295
Forum Contributor
Posts: 113
Joined: Sun Jun 09, 2002 10:28 pm
Location: USA
Contact:

Macromedia Dreamweaver Syntax Coloring

Post by chris12295 »

If any of you have experience with Dreamweaver I would like to know if it is possible to apply css syntax coloring to a php document, i have this code:

Code: Select all

<?php
header("Content-type: text/css");
?>

<? #---------------------------------------------[normal page styles]---------------------------------------------------------# ?>

#main {
 margin-left: auto;
 margin-right: auto;
 width: 760px; }
 
#footer { text-align: center; }
and I want the part not in PHP tags to be colored like a CSS file. possible?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Excluding two blank lines, everything you posted is in PHP tags. :?

Maybe I'm entirely confused. .... I'm pretty sure I am.
chris12295
Forum Contributor
Posts: 113
Joined: Sun Jun 09, 2002 10:28 pm
Location: USA
Contact:

Post by chris12295 »

well i dont knw what you are seeing but lets say i have a php script with a CSS header and im using a php script as a css file via a link tag so taht my css can take advantage of variables and what not. is there any way to color the css as css in dreamweaver even though it is in a php file?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm looking at your posted code on this page. It's all PHP.

I'm pretty sure you can temporarily override the syntax Dreamweaver is using for any active document.
chris12295
Forum Contributor
Posts: 113
Joined: Sun Jun 09, 2002 10:28 pm
Location: USA
Contact:

Post by chris12295 »

It is a stylesheet written in a PHP document but it is CSS. So how would you override the syntax?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Can you edit dreamweaver syntax styling? I know in other apps they are usually smart enough to know when they are in PHP, HTML and CSS.
Post Reply