Syntax/Code Coloring as default
I don't want to sound lazy but - is there a way to have the syntax color switched to 'on' by default.
I have found out that C5 has syntax switched off by default and having to go to code and switch on for each page just adds more time to my day as I go through dozens of sites and pages each day.
I have also noticed that when I go back to a page that I have switched 'on' the color option that it is switched off again.
Thank you.....
Not sure what you mean. Maybe this will help http://www.thatwebguyblog.com/post/a_dark_code_view_theme_for_dreamwea ver/
Similar Messages
-
Dreamweaver CS6 and Coldfusion 9 - Syntax Errors & Code Coloring
I recently purchased Dreamweaver CS6.
Also, I'm running Coldfusion 9 on Windows 7, but that's probably irrelevant.
The issue is that Dreamweaver keeps on marking my files with syntax errors, and the code coloring gets all messed up.
For instance, such function would indicate an error due to the #var#:
<cfoutput><script>functionXYZ(#var#);<script><cfoutput>
But this would work just fine:
<script>functionXYZ(<cfoutput>#var#<cfoutput>);<script>
The issue is that I have entire pages wrapped in cfoutput, redoing everything would take months.
Or this would break the code coloring for the entire select as such:
<select <cfif test eq 'test'>class="test"</cfif> name="selectbox">
While this breaks the code coloring for the closing cfif as such:
<select class="<cfif test eq 'test'>test</cfif>" name="selectbox">
I'm getting syntax errors on thousands of my files, I understand that I could rewrite the code slightly to remove some of the error indications, but these are not actual errors so I feel that there is no point of me spending months updating the code.
Is there a patch that I can apply so that this would work without any of these issues?
Can someone please help?Have you posted this question in the Cold Fusion Forums?
http://forums.adobe.com/community/coldfusion
I don't use CF myself and the few CF coders I know have long since moved to Eclipse/ColdFusion Builder.
Nancy O. -
Dreamweaver syntax hilight (color scheme) in Edge Code
It's not the fact that I'm so much in love with DW syntax hilighting..
But I'm so used to it that for code writing speed and immediacy I'd like to have the html/php/css/js code colored exactly as in Dreamweaver..
Is there a way to achieve that?
I also tried to load some Brackets extensions but it outputs me an error and places them into the "disabled" folder..
Thanks a lot!!Edge Code is a re-branding of Brackets, but it's not updated with every new release of Brackets. You'll need to install Brackets (http://brackets.io) which has Themes built-in to the latest version (0.43), then you can install Themes extensions. If you don't see Themes that you like, you can create your own.
Randy -
DW cs4 - something changed - font code colors
Hello
[history ] I have been using DW CS 4 for 16 months.
[Question ] Sometime in last two months the font code colors changed and are mostly blue. I would like the code to have the variety of colors that it once had which made reading code possible. When I've checked my code preferences I don't see anything which has changed.
About the same time I have been getting an error message (maybe a red herring to code color issue)
"this page contains some SWF that may not work properly in the most recent versions of Internet Explorer.
Dreamweaver cannot convert them to the new SWF markups. Please delete each of them and insert again."
However pages from same site that don't have SWF error are not having homogenous code color.
Elsewhere when I searched the error code someone suggested looking at extensions. The only extension I remember specifically adding to dreamweaver in last few months is
Adobe : HTML5 hinting for CS3 & CS4
Thanks,
Casey
[additional info]
Windows Vista™ Home Premium (6.0, Build 6002) Service Pack 2 (6002.vistasp2_gdr.100608-0458)
Language: English (Regional Setting: English)
System Manufacturer: Dell Inc.
System Model: Inspiron 1525
BIOS: Phoenix ROM BIOS PLUS Version 1.10 A16
Processor: Intel(R) Core(TM)2 Duo CPU T5750 @ 2.00GHz (2 CPUs), ~2.0GHz
Memory: 3062MB RAM
Page File: 2057MB used, 4264MB available
Windows Dir: C:\Windows
DirectX Version: DirectX 11@ Nancy Thanks. Generally yes. Transitional xhtml 1.0.
However ---
DW cs4 code color still is off.
It seems that a possible cause was not the swf issue (as I first asked about) but something with ASP coding.
I say this because when I remove the asp comment at the start of a product page (examples below) . Yet I don't know asp or DW library well enough to conclusively say this is it or just a hack. I'd prefer best practice option.
'default to order tab or not
or
I edit it to a string
'default to order tab or not'
then rest of page is colored perfectly.
three examples (bigger below) --- as it is DW CS4 not rendering code colors correctly... then #2 removing 'default to order tab or not then #3
Original --
Modified option 1 -- removed asp comment (which I'd prefer to keep)
modified option 2 ( asp commented closed with ' but this may not be best practice.... will check coding forum for that... for now I'm seeing if DW is messing up something it should be.... ) -
How do I reset the code color scheme to it´s
defaults?Here's a crude brute force way.
Find the Configuration folder for You as a User.
The locations are given in the middle of this technote
document:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16410
find the Configuration folder in the C->Programs and
Settings folder.
copy the CodeColoring folder folder of the master program and
settings
Config folder, then delete the ColdColoring folder for you as
a User and
replace it with the master copy.
restart dw.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Adding code-coloring to file with nonstandard extension
I have PHP files that end in .ctp, which are basically HTML templates with PHP mixed in (as part of the Cake PHP framework). I'd like them to be parsed for code coloring the same way that the PHP files are, but the text is all black. Is there a way that I can tell Dreamweaver to parse it for PHP code coloring? I have already added ".ctp" to the list of file types that open in Code View using DW's Preferences.
This is CS4.
Thanks!Nevermind - I figured it out from here, you just have to edit an XML file to include the new extension that should be treated as PHP:
http://kb2.adobe.com/cps/164/tn_16410.html -
Use PHP code coloring in HTML files
In Dreamweaver CS3, what changes do I need to make to get PHP
code coloring show up in .html files?robot88888888,
First, copy this file from the app config folder:
C:\Program Files\Adobe\Adobe Dreamweaver
CS3\configuration\CodeColoring\PHP.xml
To the user config folder:
C:\Documents and Settings\[username]\Application
Data\Adobe\Dreamweaver
9\Configuration\CodeColoring\
Then open PHP.xml in your favorite editor. You need to add
HTML to all
of the doctype lists Change every occurrence of this:
doctypes="PHP_MySQL"
to be:
doctypes="PHP_MySQL,HTML"
Save and close. If DW is running, close it. Now restart DW.
HTH,
Randy
> In Dreamweaver CS3, what changes do I need to make to
get PHP code coloring show up in .html files? -
I no longer have code coloring or code hints working on
Dreamweaver. I checked the preferences and everything is still set
the same but whenever I open an existing document it will not give
me the code coloring or code hints. I still get it when I open a
new doc but nothing else. Any ideas on how to fix this?kms5038 wrote:
> I no longer have code coloring or code hints working on
Dreamweaver. I checked
> the preferences and everything is still set the same but
whenever I open an
> existing document it will not give me the code coloring
or code hints. I still
> get it when I open a new doc but nothing else. Any ideas
on how to fix this?
It sounds like DW does not recognize the file type of your
page. What is
the file extension?
Randy -
Both of my Macs running OSX 10.7.1 are now exhibiting this behavior. The color picker defaults to black regardless of which color I chose.
I have deleted preferences, reinstalled the program, tried to use the color picker on images as well as Captivate shapes (squares, ellipses), but it still defaults to black. I have also tried new projects and pre-existing projects. Defaults to black.
No similar problems with Cp 5.5, which I have installed on only one of my computers (so can't attribute this to a Cp version conflict)
Has anyone else has this behavior? Any known fixes?
I have also reported it to Bangalore and as a bug.
ThanksBoth of my Macs running OSX 10.7.1 are now exhibiting this behavior. The color picker defaults to black regardless of which color I chose.
I have deleted preferences, reinstalled the program, tried to use the color picker on images as well as Captivate shapes (squares, ellipses), but it still defaults to black. I have also tried new projects and pre-existing projects. Defaults to black.
No similar problems with Cp 5.5, which I have installed on only one of my computers (so can't attribute this to a Cp version conflict)
Has anyone else has this behavior? Any known fixes?
I have also reported it to Bangalore and as a bug.
Thanks -
Code coloring error in HTML5 templates
Is it just me?
In both HTML5 templates (two or three column), that one can select after select 'New' from the 'File' menu the code is all grayed out after the browser conditional:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js">##HERE##</script>
<![endif]--></head>
<!-- This HTML comment is here for no other reason but to fix the code coloring in Dreamweaver -->
Code coloring is fine up to my indicator ##HERE## above, after that all grayed out till next end HTML commnet '-->'.
I can fix it, lamely, with the comment you see above, "<!-- This HTML...-->"
If the line <script ...>...</script> is removed from in between the conditional tags everything is fine.
Thanks for any help.Just put a blank html comment <!----> after<! [endif] ->, the problem will disappear, the color will appear
example:
<!--[ IF lt IE 9]>
<scriptsrc="http://html5shiv.googlecode.com/svn/trunk/html5.js"> </ script>
<! [endif] -> <!---->
</ head> -
Make DW use JS code-coloring instead of PHP
I have a Javascript file that has a .php extension because of
some dynamic elements on the page. I also can't wrap the code in
<script> tags because of the way it loads. So basically, I
need to tell DW to use JS code coloring on this page instead of PHP
(right now, everything except the PHP is black text). Any way to
force it to associate the file with a specific file type, instead
of basing it on the file extension?mattloaf1 wrote:
> I have a Javascript file that has a .php extension
because of some dynamic
> elements on the page. I also can't wrap the code in
<script> tags because of
> the way it loads. So basically, I need to tell DW to use
JS code coloring on
> this page instead of PHP (right now, everything except
the PHP is black text).
> Any way to force it to associate the file with a
specific file type, instead of
> basing it on the file extension?
You can "fake" the script tags and fool the code coloring
scheme by adding to the top of the file:
// <script>
and to the bottom of the file:
// </script>
As the // are single line comments in JavaScript when the
file is loaded by the browser it won't see the script tags, but the
code coloring engine seems to be tricked and begins working on the
JavaScript code that is not within the <?php ?> code blocks.
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
My network administrator informed me that he would like to
use all .htm file extensions on our site, and that he will program
the server to render PHP tags within the .htm files for our
web-apps.
However, for development work I would still like to apply the
PHP code-coloring within files that have .htm extension. Can I tell
Dreamweaver to do this?
Thanks!What was old is new again!
Similar to the original poster, my IT area has set up the web server to process all .HTM files as if they were .ASP. Subsequently, I cannot view my HTM files as they would appear if they were "true" ASP files in Dreamweaver CS5. I applied the changes described in TechNote 16410 to MMDocumentTypes.xml (removing the HTM extension from the winfileextension and macfileextension attirbutes of the HTML InternalType and adding the HTM extension to the winfileextension and macfileextension attirbutes of the ASP-VBScript InternalType). I moved HTM in Extensions.txt from the HTML Documents line to Active Server Pages line and I removed the backup I had made of MMDocumentTypes.xml from the Adobe directory.
Based on another posting in this forum regarding code coloring, I added <%@LANGUAGE="VBSCRIPT"%> to the first line of my HTM (ASP) file.
No matter which file with the HTM extension I open in Dreamweaver, I get this message:
I also need to terminate Dreamweaver using Windows XP's Task Manager. File > Close, the application close button, Ctrl+Q and Alt+F4 do not work. -
The changes I make in the Preferences section under Code Coloring do not always stick. I even tried replacing the Colors.xml file with someone else's theme. That does not come through. I replaced it both under my Configuration/Code Coloring folder which appears under Applications as well as my User folder.
I don't understand why some of the changes take and others not. Should there not be an easier way to do this??
Any clues as to how I can make the new (external) Colors.xml stick would be appreciated.CS5. And I should say, the instructions given on the Adobe site on how to swap out the colors.xml file indicate a folder that doesn't exist. There is no Preferences folder. It's Configurations.
-
Code Coloring, ASP/VBScript, & CS5
My IT area has set up the web server to process all .HTM files as if they were .ASP. Subsequently, I cannot view my HTM files as they would appear if they were "true" ASP files in Dreamweaver CS5. I applied the changes described in TechNote 16410 to MMDocumentTypes.xml (removing the HTM extension from the winfileextension and macfileextension attirbutes of the HTML InternalType and adding the HTM extension to the winfileextension and macfileextension attirbutes of the ASP-VBScript InternalType). I moved HTM in Extensions.txt from the HTML Documents line to the Active Server Pages line and I removed the backup I had made of MMDocumentTypes.xml from the Adobe directory.
Based on another posting in this forum regarding code coloring, I added <%@LANGUAGE="VBSCRIPT"%> to the first line of my HTM (ASP) file.
No matter which file with the HTM extension I open in Dreamweaver, I get this message:
When this happens also I need to terminate Dreamweaver using Windows XP's Task Manager. File > Close, application "close" [X] button, Ctrl+Q and Alt+F4 do not work.As far as I know (could be wrong here), DW does not allow you to alter the behavior of htm(l) files. The technote is aimed at adding new file types that DW doesn't already recognize.
-
Code Coloring Bug: Ranges in DateFields
Adding ranges to DateFields in an mxml file will cause the
code coloring to stop working. Is this a known bug?
Try a field like this:
<mx:DateField id="dtNeeded" disabledRanges="{[{rangeEnd:
new Date()}]}"
selectedDate="{detailObject.dtNeeded}" editable="true"
/>andretannus wrote:
> Your reply wasn?t unsatisfactory, just pointless. You
just babble what I said
> back to me.
>
> I say: I found a bug. It has a workaround witch is not
good enough for me.
> Please give the abode bug tracking tool.
>
> You replied: There is a bug. The bug can be fixed with a
workaround (which I
> not only had mentioned but also discarded as useless).
>
> I have already posted my "vote" for (or against) the
problem, for whatever
> that servers.
>
> Still waiting on that bug tracking tool.
>
> cheers, and sorry for the apparent rudeness...
>
> I asked for a bug tracking tool, you gave me a complaint
thing that doesn?t
> remotely come close to a bug tracking system... I posted
whatever I had to
> there, and there has yet been no reply from whoever...
>
> just that
That "complaint thing" is the bug reporting tool, there is no
bug
tracking system, its the only way your going to be able to
communicate
with Adobe about the bug. There is no list of bugs, and you
will never
know for sure if/when it will be fixed. If your lucky you may
get a reply.
Dooza
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html
Maybe you are looking for
-
IPod Touch Stopped Working With Car Stereo
Hello Everyone, I have an iPod Touch 4th generation that was working perfectly with the after market car stereo in my truck The Stereo is an Alpine CDE-102 and I am using the iPod interface and correct cable. After upgrading to IOS6 the car stereo
-
"Bad parameter" when starting Acrobat XI Pro (Windows 7 Pro 64-bit)
The first time I start Acrobat XI Pro each day (whether directly by clicking on the Acrobat icon or indirectly by clicking on a PDF file), I receive a "bad parameter" screen and I can't go any farther with the program. At that point, I close Acrobat.
-
I've been trying to set up 1 static IP on a LAN port for a media player. I believe the method to use is (1)go to ADVANCED ROUTING tab (2)Select (in my case) GATEWAY (3) Select a route number (I select route (1)) (4) I enter a name in the name area (5
-
I can't transfer my SMS from Iphone 4 to Iphone 4S?
Hi, I can't transfer my SMS from Iphone 4 to Iphone 4S, how do I go about it. I have restore alot of times but I still can't restore my SMS. Is my mac or itune having problem? Pls help Thanks!
-
Has to type each character twice while supplying command in Open VISA test panel
has a set of commands to work witha system connected to the MS windows PC. when I trype the commands in Hyperterminal (with/without ) they are yielding the expected results. in LabVIEW, to get the expected results I MUST has to type 'each character'