Page 1 of 1

Macromedia Dreamweaver Syntax Coloring

Posted: Thu Mar 01, 2007 11:16 pm
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?

Posted: Fri Mar 02, 2007 12:07 am
by feyd
Excluding two blank lines, everything you posted is in PHP tags. :?

Maybe I'm entirely confused. .... I'm pretty sure I am.

Posted: Fri Mar 02, 2007 12:19 am
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?

Posted: Fri Mar 02, 2007 12:45 am
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.

Posted: Fri Mar 02, 2007 10:55 am
by chris12295
It is a stylesheet written in a PHP document but it is CSS. So how would you override the syntax?

Posted: Fri Mar 02, 2007 11:11 am
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.