Code Coloring - adding extensions
Does anyone know how to make .inc files (or any extension)
use the .php code coloring scheme (or any scheme) in Dreamweaver 9
(CS3)? The tech note I found among these messages applies to
Dreamweaver MX, but not all configuration files mentioned in the
tech article are found in the DW9/CS3 configuration.
theopan,
OK, I think I understand the problem now. The
MMDocumentTypes.xml file
is no longer automatically copied from the Application
Configuration
folder to the User Configuration folder, so you need to
manually copy it.
Hope this helps,
Randy
> No, the folder renaming is not the issue, I have been
looking in adobe. Have
> scanned my entire harddrive, inlcuding hidden and system
files and folders.
> There is a note in the Configuration_ReadMe.htm that the
extensionsdata folder
> is only there for backwards compatibility. My issue is
there is no
> MMDocumentTypes.xml file anywhere, and although I have
made changes to several
> .txt and .xml files to include INC wherever PHP is
found, using what seems
> logical additions, INC files are not being displayed
with colors. Whatever
> functionality MMDocumentTypes.xml was performing must
have been moved or
> duplicated to another file. Any more help in this area
would be appreciated.
> It's probably something simple, but don't know where to
go next.
Similar Messages
-
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 -
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. -
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.
-
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.... ) -
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 -
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 -
Document type in Code Coloring preference
Edit, preference in Dreamweaver MX 2004, under code coloring
category, I can't see the various document type in Machine A but I
can see ASP JavaScript, PHP, Cold Fusion etc in Machine B, do
anybody know why????Configuration problem???
How do I get it back????Pls helpIt sounds like you may have some missing or corrupted
Configuration
files in the CodeColoring and DocumentType sub-folders.
Start by disabling any extensions that you have installed.
After that,
the easiest solution is probably to uninstall/reinstall.
HTH,
Randy
> Edit, preference in Dreamweaver MX 2004, under code
coloring category, I can't
> see the various document type in Machine A but I can see
ASP JavaScript, PHP,
> Cold Fusion etc in Machine B, do anybody know
why????Configuration problem??? -
The code coloring is suddenly gone in the code view. I
haven't changed anything in the preferences, and when
I check it everything is set up as it always has been. Not
really that big of a deal, but after years of seeing
it in different colors it's strange just to be black.
Restarted Dreamweaver, re-booted etc. Hate to re-install
Dreamweaver and set up all of my web sites again. If anyone
has a quick easy solution I would appreciate it.
ThanksIs this true for all file extensions in all sites? Which DW
are you using
and which OS?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"chipdustygerda" <[email protected]> wrote
in message
news:g9p61c$kll$[email protected]..
> The code coloring is suddenly gone in the code view. I
haven't changed
> anything
> in the preferences, and when
> I check it everything is set up as it always has been.
Not really that big
> of
> a deal, but after years of seeing
> it in different colors it's strange just to be black.
Restarted
> Dreamweaver,
> re-booted etc. Hate to re-install
> Dreamweaver and set up all of my web sites again. If
anyone has a quick
> easy
> solution I would appreciate it.
>
> Thanks
> -
Sass scss code coloring and code hinting
Cannot get Dreamweaver to treat .scss files as style sheets with CSS code coloring and code hinting?
Have tried editing the MMDocumentTypes.xml file located in the /Applications/Adobe Dreamweaver CS5.5/Configuration/DocumentTypes folder, as recommended by other users having this issue. Still no code coloring or code hinting. I suspect there may be multiple MMDocumentTypes.xml files and I need to find the correct one?
O.S.: OSX Mavericks
Dreamweaver: CS5.5kms5038 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 -
I've got code coloring schemes for several document types
tweaked until they're just what I like. How do I copy one (say, my
.asp scheme) to a different document type? What about if the
document type (.inc) is one that's not on the list at
Preferences|Code Coloring?> I've got code coloring schemes for several document
types tweaked until they're
> just what I like. How do I copy one (say, my .asp
scheme) to a different
> document type?
There's no way to do that through the DW UI, but you can do
it by
manually editing some Configuration files.
Start by reading this TechNote:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16420
This describes the difference between the "application" and
"user"
Configuration folders and where to find them on your system.
It's best
to edit files in the user config folder, not the *parallel*
app config
folder. You may have to first copy a file from the app config
folder to
the user config folder before you can edit it.
Now, take a look at the Configuration/CodeColoring/Colors.xml
file. You
should find a <colorGroup> tag with one of the ASP
doctypes listed with
your changes. You can either add the new doctypes to the
list, or just
remove the doctypes attributes so that the colors apply to
all doctypes.
> What about if the document type (.inc) is one that's
not on the
> list at Preferences|Code Coloring?
This TechNote explains how to add new file extensions:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16410
HTH,
Randy -
Transaction code for adding new character
hi ,
i am new member of this group.I want to know the transaction code for adding a new character in BW.
please help me.
Thanks in advance,
reenaHi reena,
When you say "adding a new character in BW" you want to create a new characteristic (InfoObject) in BW or you want to add a new char to BW?
Modeling in BW is done at tocde RSA1 & go to relevant tab on left screen (dataprovide, InfoObjects etc) & right click to create Objects.
hope it helps
regards
VC -
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? -
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>
Maybe you are looking for
-
Error in accounting interface: FI/CO interface: Balance in transaction cur
Hello Gurus- We are on ECC 6.0 and we are having a problem with a few billing documents. Below is an example of the error we are receiving with several billing documents via VXF3: Diagnosis The balances in transaction currency must be zero for
-
Hello All, Working on MII12.1.6 Build 96, NW7.1 SP03 With my user name, I'm logging to MII on 2 different workstations, at the same time. 1st one is showing the messages received on the defined listeners in the Message Monitor. 2nd one showing "No da
-
24/7 Active - Active database
All: I would really appreciate any answers to this question. We are a global organizational and pressure is mounting on us to keep the operations a 24/7 operation. Our SAP instances run on HPUX 11i and Oracle 9i (9205). Maintenance is however mandate
-
Picking up wireless signal, but it's not letting me connect to the internet
I live in a college dorm, and I pick up an airport signal from someone else, and last night the internet was down all around. This morning however, it came back up and I have a full airport signal, but I can't connect to the internet through it. Addi
-
Running a parameter report from form bulder
Hello,i was able to finally run a report from forms 9i,however when this report is a parameter report it doesn't work and i get an error. Please tell me what to do and don't tell me to read the frm9isrw9i file because i already did and i am completel