Jump to content


Photo

Colour coding code areas (Dreamweaver)


  • Please log in to reply
5 replies to this topic

#1 Mutley

Mutley
  • Members
  • PipPipPip
  • Advanced Member
  • 765 posts

Posted 02 October 2006 - 04:57 PM

I have lots of code in one file. I really want to know if there is a way to make each part or certain areas stand out. Like give it a background colour, or format the code in someway. "Highlight" the code like you can with words in Word Processors.

Anyone know how, or is there any plugins? For Dreamweaver.
~ Mutley.

#2 Mutley

Mutley
  • Members
  • PipPipPip
  • Advanced Member
  • 765 posts

Posted 04 October 2006 - 11:03 AM

Anyone?
~ Mutley.

#3 Mutley

Mutley
  • Members
  • PipPipPip
  • Advanced Member
  • 765 posts

Posted 05 October 2006 - 10:05 PM

Well it looks like it doesn't exist, is it just me who would find this useful? Maybe someone should try to make a plugin for it. :D
~ Mutley.

#4 dbrimlow

dbrimlow
  • Members
  • PipPipPip
  • Advanced Member
  • 712 posts

Posted 16 October 2006 - 03:53 PM

Actually, you can do it in DW (I'm using DW 8.0), but you may still be able to in earlier versions.

Go to > edit >> preferences >>> code coloring:

Click on the type of code that you want to edit the color for then click on the "edit coloring scheme" button.

You can then scroll though the styles for all types of code snippets within your documents - on the right you change the color and background-color, on the bottom is a sample of code using all of the defaults for the various editable snippets.

This is a pretty cool tool if you have specific snippet types that you want to call attention to every time (all backgrounds default is white; text color default for php script block is "web" red; script functions default is web "link" blue; script identifiers/text default is black; script string default is dark red; forms default is orange; etc.)
So long as you know specifically what element type you want to have a new default color and background for , you can easily change them here.

Dave

I am always amazed by no matter how much I know, I know I don't know as much as I thought I knew.  - D. Brimlow.

#5 Mutley

Mutley
  • Members
  • PipPipPip
  • Advanced Member
  • 765 posts

Posted 16 October 2006 - 06:47 PM

Hmm, It doesn't do it for every function in PHP (e.g. echo/if/else etc) it just does ALL functions in general.

I was really wanting to highlight/background colour my work on the fly. Like highlight the code then chose a colour, so it splits the actual page up on the go.
~ Mutley.

#6 dbrimlow

dbrimlow
  • Members
  • PipPipPip
  • Advanced Member
  • 712 posts

Posted 17 October 2006 - 09:54 PM

Have you tried the DW forums?
Dave

I am always amazed by no matter how much I know, I know I don't know as much as I thought I knew.  - D. Brimlow.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users