Forum Moderators: open

Message Too Old, No Replies

color-coding php code in an .htm doc

is poss. in dreamweaver & homesite?

         

jamie

10:35 am on Aug 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i parse htm files as php on our server.

when i am editing them in either homesite or dreamweaver, the programme thinks they are htm docs and leaves all the code in blue which is a nightmare to read.

does anyone know any idea about how to color code php code in an htm doc?

thanks

wruk999

11:17 am on Aug 1, 2003 (gmt 0)

10+ Year Member



Jamie,

I used EditPlus for Windows which does a great for coding. Its free for 30-days...but works an absolute treat ;)

wruk999

benihana

12:51 pm on Aug 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jamie - im in the same position as you and would love to know if you find a solution.
ive tried playing around with the colorcoding.xml file in the config folder - adding .html and .htm to the file types listed under the php section - but no luck so far.
let us know if you make any progress
cheers

le_gber

3:10 pm on Aug 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



why not saving your page as .php while you work on it and as .htm when you want to upload it?

Leo

jamie

4:12 pm on Aug 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



le_gber that's exactly what i do, but all subsequent editing is then difficult.

i suppose i could rename it back again to php while editing. that's the best solution i've heard so far. how simple too!

thanks :)

griz_fan

4:27 pm on Aug 1, 2003 (gmt 0)

10+ Year Member



In Homesite, go to Options, then settings, then find the color coding section. Find the PHP scheme, then edit the extensions for it. Add .htm to the list of extensions. Hope this helps!

jamie

4:37 pm on Aug 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



thanks griz_fan,

i do have a lot of normal htm and html files to edit too, and i am very used to homesite's color coding (4 years) so that is not ideal.

what i have done though is to download editplus (thanks wruk) and have done exactly what griz_fan suggests for that - added htm to the list of files color-coded as php.

means i can stick to the standard color-coding for htm and php files in DW and homesite and use editplus for htm-as-php files. it is very quick to open too, not like the behemoth DW ;)

thanks all!