If you want your own code highlighted the you can modify the CodeColoring.xml file.
I added for example the {* and *} as comments right after the declaration for the HTML comments. Just copy the code for HTML comments and replace the <!-- and commentEnd in the square brackets with your own ;)
To get a custom type working as PHP you want to add your extension to Extensions.txt under the PHP category instead of HTML. Then in MMDocumentTypes.xml you don't want to add a new type, you just add the win/mac extension to the PHP_MySQL type. It should now open as HTML in design view but when viewing in code view your PHP coloring should work. Cheers
Thanks pal!
vidurangak 11 months ago
This has been flagged as spam show
Super duper sweet, Thank You!!
If you want your own code highlighted the you can modify the CodeColoring.xml file.
I added for example the {* and *} as comments right after the declaration for the HTML comments. Just copy the code for HTML comments and replace the <!-- and commentEnd in the square brackets with your own ;)
Dreamweaver if happy with it :) good luck to all
frostyandy2k 1 year ago
Comment removed
frostyandy2k 1 year ago
Comment removed
frostyandy2k 1 year ago
Comment removed
frostyandy2k 1 year ago
Thank you so much mlathrom! Just what I was looking for and it worked.
debdevweb 1 year ago
very helpful ! exactly what i wanted :D
DHFORPM 1 year ago
I got dreamweaver 8, and none of my code is being color coded can you help me with that?
XPMUSER 1 year ago
Excellent video. Works perfectly. Thanks for the help!
mriggsbee 1 year ago
To get a custom type working as PHP you want to add your extension to Extensions.txt under the PHP category instead of HTML. Then in MMDocumentTypes.xml you don't want to add a new type, you just add the win/mac extension to the PHP_MySQL type. It should now open as HTML in design view but when viewing in code view your PHP coloring should work. Cheers
ominousri 1 year ago
Thank you so much. I spent so long figuring out how to do that before I found your video.
ricofilm 2 years ago
Not resolved yet.
In case it might help, here are our next two correspondences:
>>> Here's what you need to set.
>>> servermodel="PHP MySQL"
>>> internaltype="Dynamic"
>>Yeah, those are already set.
>>I took a copy of the PHP doctype instead of the HTML one at the top, then modified that as you showed in the tute.
>>Is there anything else I'm missing?
~ Mo
moOrloff 2 years ago
This was GREAT! I've been needing this for a while now.
One question though, what do I change in the process to get the custom extension (*.inc) to use the PHP code coloring.
With the help of this tute, I've at least been able to get it to use HTML code coloring.
I suspect I'm missing something in the codeColoring.xml, but I'm pretty much nube, and can't find it.
Please help !! :o)
moOrloff 2 years ago
@moOrloff did you ever figure this out? I'd like to know as well.
1l0v3n1nja 2 years ago