Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Purple_Tentacle #1
PHP code coloring question
Can someone tell me how to add the following code coloring into Dreamweaver?
Basically if I have a php script, I want to do the following:
<?php
$page .= <<<EOD
<html>
<head>
EOD;
I want the stuff between the <<<EOD and EOD; to be color code as if it was
straight HTML. Any insights? I looked at the CodeColoring.xml document and
tried to add in a thing around line 1304 that said:
<blockStart doctypes="PHP_MySQL"
scheme="customText"><![CDATA[EOD;]]></blockStart>
<blockEnd><![CDATA[>>>EOD]]></blockEnd>
But this did nothing.
Ideas greatly appreciated.:confused;
Purple_Tentacle Guest
-
Code Coloring for SQL files?
I know this has been discussed before, but I can't believe that Adobe or someone hasnt created a Code Coloring scheme for MSSQL and/or MySQL. Can... -
${} can't be coloring ?
I want to extend the codecoloring in dreamweaver for syntax highlighting ${...} I use <blockstart /> <blockend /> but $ can't be coloring, who... -
code coloring shema in extension
Hi All, I`m working on extension for Dreamweaver MX, and I would like to add new code color shema and include it in mxp file, for files with TPL... -
Coloring book
Hi All, I would like to create a coloring book using the paintbox behaviors. I created some black outline artwork in Illustrator, that I have... -
Code Coloring include files
I would like to be able to have .inc files code colored as php and to have the php tab associated with .inc files. Is this possible... Thanks,... -
Randy Edmunds #2
Re: PHP code coloring question
You should be able to get HTML coloring using this approach, but you
won't get your PHP variables colored as the are now.
The parent scheme of this block should be the HTML scheme (the scheme of
the coloring that you want), not the PHP_Script scheme (you've already
got PHP_script coloring!).
Based on your sample, it looks like you have your "start" and "end"
strings reversed, but that could just be a typo.
Be sure to update the CodeColoring.xml file in your User config folder.
Updating any file in your Application config folder will not have any
effect if there is a file by the same name in your User config folder.
Hope this helps,
Randy
> Can someone tell me how to add the following code coloring into Dreamweaver?
> Basically if I have a php script, I want to do the following:
> <?php
>
> $page .= <<<EOD
> <html>
> <head>
> EOD;
>
> I want the stuff between the <<<EOD and EOD; to be color code as if it was
> straight HTML. Any insights? I looked at the CodeColoring.xml document and
> tried to add in a thing around line 1304 that said:
> <blockStart doctypes="PHP_MySQL"
> scheme="customText"><![CDATA[EOD;]]></blockStart>
> <blockEnd><![CDATA[>>>EOD]]></blockEnd>
>
> But this did nothing.Randy Edmunds Guest
-
-
Purple_Tentacle #4
Re: PHP code coloring question
Ah, I just made a stupid mistake. For anyone curious the correct method to do
this is to add the following into the PHP scheme (around line 1300).
<blockStart doctypes="PHP_MySQL,HTML"
scheme="customText"><![CDATA[EOD;\n]]></blockStart>
<blockEnd><![CDATA[ >>>EOD]]></blockEnd>
Thanks for the help Randy!
Purple_Tentacle Guest



Reply With Quote

