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

Similar Messages

  • Can we Use T Code MIRA instead of MIRO for posting incoming invoice?

    Hi All,
    Can we Use T Code MIRA instead of MIRO for posting incoming invoice?
    While trying to post a incoming invoice using MIRO, I am getting a error "HKONT is EMPTY". But when using MIRA i could get the invoice posted.
    And in which situations we use MIRA?
    Thanks in Advance
    Gopi Krishna

    Hello
    MIRA is for Invoice Verification in the Background
    Purpose
    This process is suitable for the following transactions:
    Posting invoices with mass amounts of data for which no item check is required
    Posting invoices referring to transactions not yet entered in the system
    Entering Invoices for Verification in the Background (Without Item List)
    When verifying invoices in the background, you enter only a small set of document header data, such as the invoice amount, the currency and the tax information. You also allocate the incoming invoice to a purchasing document or a vendor. The system saves the data and allocation criteria you enter.
    At a later point, the system verifies the invoice in the background. It uses the allocation criteria you entered to determine the item list. It then calculates the net total from the item list.
    If the net total = gross amount invoiced - tax amount (+/- tolerance), the system posts the invoice in the background.
    If the net total ¹ gross amount invoiced - tax amount (+/- tolerance), the system does not post the invoice in the background. It saves the document header data and the items determined in the background; the saved document then has to be processed manually in Invoice Verification.
    With Invoice Verification in the background, the system does not check for any quantity or price differences at item level. Since you do not enter any actual invoice item data, the system uses the default data for comparison.
    Regards
    Gregory Mathews

  • Graphic styles that use current fill color instead of stomping them?

    Sorry if this is a really stupid, newbie question; I am a stupid newbie.
    If I make a graphic style/appearance, it stores the colors of the fill and stroke and will then stamp that down on whatever else I apply it to (obviously). e.g. if I make a graphic style of a pale yellow fill and a bright orange dropshadow screen to make a glowing neon kind of look, and then drop that style onto a bright blue star, it will make the star pale yellow.
    Is there a way to do a graphic style that _modifies_ the existing appearance instead of stomping it - e.g. dropping that graphic style on my blue star would make a pale blue fill with a bright green dropshadow screen.
    e.g. A graphic style that said "make the new fill 110% value, 85% saturation, same hue as the existing fill color, add a 25 pt dropshadow that has the color of 90% value, 110% saturation, -3 hue of the existing fill color." And then that style dropped on a yellow star and a blue star would result in a glowing neon yellow star and a glowing neon blue star.
    The reason I ask: I have a bunch of geometric shapes of various shades of red, orange, yellow and brown, and would like to see what they would all look like with dropshadows of dark, very desaturated complementary colors (the orange shape gets a dark blue/gray dropshadow, the yellow shape gets a dark purple/gray dropshadow, etc.). Do I have to go in and modify each appearance by hand, or is there some way I can automate that?
    Thanks, and apologies if this is a really obvious question.
    Ken

    You won't get as much control as you describe (specific HSV values), but try putting a negative value in the Drop Shadow dialog's Darkness field.
    To create a Graphic Style that can apply an Effect without disturbing the existing fill/stroke of the object(s), first group the object(s), then apply the Effect (Drop Shadow, etc.) to the Group, and then drag the Group to the Graphic Styles palette.

  • Force Dreamweaver CS5 to use long hexadecimal color codes

    Hi everyone. Does anybody know if there is an option to force Dreamweaver CS5 to use long hexadecimal color codes in all instances?
    My company designs email newsletters and so we have to ensure maximum compatibility across web clients and email programs. The worst offenders for rendering CSS are Gmail and Outlook. We have to ensure all text and links have their color set by inline style tags, and since this is CSS Dreamweaver inserts them in 3-character shortform. Some versions of Outlook are not capable of processing these shortcodes, and so we must use 6-character codes in all instances.
    I am aware that this is not necessary for most people but for us it is an essential feature. Any help would be greatly appreciated!

    Sorry for the confusion, SnakEyez02. My sense is that tobe82 addressed the issue that Dreamweaver CS5 inserts 3-character shortform hex code, i.e., #FC3 instead of #FFCC33. This can be seen by using Page Properties to select a color for the page background. As tobe82 points out, there doesn't seem to be a Preference that addresses 3- vs 6-character hex codes although CS5 uses the shorter version under some circumstances.
    For those doing HTML newsletters with Dreamweaver, this is a significant issue because thousands of subscribers use a wide variety of email software, including Microsoft Mail, and view the newsletters online with a wide range of web browsers, including Internet Explorer. Having a "happy yellow" background render black on heavily used Windows software is unacceptable. Knowing the way to correct this is important, so tobe82's question in this forum helped by suggesting the manual code fix. But I agree with tobe82 that it would be a good idea for Adobe to provide a Preference now that the 3-character shortform hex code is in Dreamweaver CS5.
    (Un)fortunately, the example is corrected. If you want to take a look, imagine this Defrost yourself and make a margarita! newsletter with a black background instead of the #FC3 yellow.
    http://reigntrading.com/newsletter/retail/2011_April7/final.html
    It looked more like an invitation to a wake than a party! The yellow background rendered black on Internet Explorer (Win 7) until I changed the automatically inserted #FC3 to #FFCC33. I don't read email on a PC, but thankfully Mac users are used to testing on Windows browsers.....

  • Need a shortcut to "Allow pages to choose their own colors, instead of my selections above option preference" I know where it is and how to use it but I have to go through 7 mouse clicks to change it, then a few minutes later change it back. I also k

    Need a shortcut to "Allow pages to choose their own colors, instead of my selections above option preference" I know where it is and how to use it but I have to go through 7 mouse clicks to change it, then a few minutes later change it back. I also know the sequnce is alt t, alt o, alt c, alt a, then ok, ok. Got to be a way to make a one key short cut for this. I use a black background to reduce eye strain, but about 10% of the webpage I go to can't be send with black so I have to go into tools and hit 6 or 7 things to chnage it then after through with webpage have to do it all over at Not allow webpages to have own color. Very very cumbersome.
    == This happened ==
    A few times a week
    == made that way

    https://addons.mozilla.org/en-US/firefox/addon/toggledocumentcolors-198916/
    The above addon will solve your problem.
    Shortcut to toggle user color/page color :- Ctr+Shift+C

  • How can we make the ms-word data as read-only using java code?

    How can we make the ms-word data as read-only using java code?

    MVSK wrote:
    By using java code i opened a file in ms-word. But the data i want to display as read-only. that means should not change it.I don't think you can do that. Display pdf documents instead.

  • How to change InputField background color using Java Code

    Hi,
    In my application use will enter some set of Cost Centers in a table and submits request.
    In return i will get a list of invalid cost centers which i need to display in a table with input field
    In that table all cost centers will displayed, but invalid cost centers should be highlighted or background color should some other color. like red or yellow.
    Is it possible using java code to change a input field color.
    Please help me.
    Thanks

    Hi,
        declare a error message in message pool and declare a method say "checkCostCenters " and in this method, u can check whether it is a valid cost center .. if it is invalid cost center , then throw the erro message using the below code :
    wdComponentAPI.getMessageManager().reportContextAttributeMessage(
                        inputfieldattibutePointer, IMessageProgramPlanComp.ur error message,
                        new Object[] );
    for getting pointer and label use the below code:
    IWDAttributePointer inputfieldPointer = URNODEELEMENTElement
                        .getAttributePointer(URNODEELEMENT.ATTRIBUTENAME);
              String inputfieldLabel = wdContext.nodeURVALUENODE.getNodeInfo()
                        .getAttribute(URNODELEMENT.ATTRIBUTE).getSimpleType()
                        .getFieldLabel();
    hope it helps..
    Thanks and Regards

  • How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    When talking about a specific image posting the image may be useful.
    One can use a Layer Mask and add a white Layer underneath.

  • When I put a website Icon on my desktop, how do I make firefox use the Icon native to that website instead of the default Firefox Icon?

    When I drag and drop a website onto my desktop, how can I make Firefox use the icon native to that website instead of the default firefox icon?
    I have even gone painstakingly (SEVERAL TIMES) to the sites with IE, dragged the site onto my desktop in order to obtain the site native icons for my desktop (and deleted the ones with the Firefox icon) .... but they all soon revert to the default Firefox icon.
    E X T R E M E L Y F R U S T R A T I N G !!!!!!!!!

    I don't want icons from the Firefox library.
    I want the icon that comes from the website I'm making the shortcut for.
    (If you go to a site in IE you will see the site generated icon at the left end of the URL in the address field.)
    If I make IE my default browser I am able to get (and keep) those icons as shortcuts on my desktop without a problem.
    I want to keep Firefox as my default browser.
    So I want to know how to make Firefox accept the icon that comes from the website like IE does.
    I have even gone to the trouble to use IE to create the shortcuts with the site specific icons.....but after I do that...... FIREFOX CONVERTS THEM TO THE FIREFOX DEFAULT ICON as soon as I re-boot or refresh my desktop.
    I generally prefer Firefox as a browser....but If there's no fix.....I'm going to dump Firefox.

  • 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?

  • Using the retouch tool, how do you make it change color? The old iPhoto one did, this one seems to be flesh-tone only, which is not how I need it to be. In old iPhoto, used the local color to blend, it was great.

    Using the retouch tool, how do you make it change color? The old iPhoto one did, this one seems to be flesh-tone only, which is not how I need it to be. In old iPhoto, used the local color to blend, it was great.

    I don't know which old version you're referring to but iPhoto 6's,  7's and 8's retouch tool works exactly the same as iPhoto 9's. The color of the enhance tool's area while applying is a light brown color but the retouch works on any color using the surrounding colors as a basis.
    During retouching:
    After retouching:
    OT

  • Trying to use windows in high contrast mode but DW CC goes all black background too and I loose code coloring. I dont mind the black, but code coloring must be essential

    Is there a way to keep the code coloring when using windows in high contrast appearance?

    Sorry, I don't have your version, but have you checked in your personal configuration folder and editing these files?
    https://forums.adobe.com/message/2260994#2260994
    CodeColoring.xml
    Colors.xml
    You can also download color schemes like
    http://www.xenon-webdesign.co.uk/dev/dark-code-view-theme-color-scheme-dreamweaver-cs3-sub lime-text-skin/

  • I have an iTunes credit but when I try to make a purchase it uses my debit card instead. How do I change that?

    I have an iTunes credit but when I try to make a purchase it uses my debit card instead. How do I change that?

    Hi Mrshfall,
    If your iTunes credit doesn't appear to be applying correctly, you may find the following article helpful:
    iTunes Store: How iTunes Store purchases are billed
    http://support.apple.com/kb/HT5582
    Regards,
    - Brenden

  • Could not complete the command because of a problem using the Adobe Color Engine

    Hi all
    This bizarrely started this morning - completely out of the blue - and I've no idea why.
    Setup: Mac 10.8.2 / Creative Suite Premium PhotoShop CS5 extended (patched to 12.04)
    Am working on images exported from LightRoom 4 (16bit A3 Pro Photo RGB PSDs) in PhotoShop CS5.
    As part of my image grading process I have a PhotoShop Action that does the following: copy layer to new document (document respects all of copied layer settings) > Image > Adjustments > HDR toning > apply a certain HDR preset > copy to resultant image back to original doc > set opacity as 40%.
    Totally out of the blue, after having this action for about 2 months, this morning I start getting a warning dialog of "Could not complete the command because of a problem using the Adobe Color Engine" and the action fails. The failure seems to take place at the 'make document' part of the action and seems to somehow be related to the contents of the clipboard.
    I've tried trashing and re-creating the action. It works first time out fine and then - on the next image - errors again.
    At present I can only safely carry out the work 'manually' by completing all the actions myself.
    I can think of no settings that have changed and the OS hasn't been updated in a while.
    I have found one other thread on a similar problem in PhotoShop Elements, but no definitive solution.
    Any help appreciated as I have a shedload of stuff to process.
    Best wishes
    TP

    OK: trash of prefs didn't work. Tried thrice. Re-created orig action. same problem.
    BUT!
    Your 'Image > Duplicate' suggestion does seem to work. If I use that in a new action as the method for creating the HDR version doc (instead of 'Select > Copy > New > Paste), it seems to work.
    Will try that out this afternoon, but for now: WIN!
    Many thanks for the suggestion!
    TP

  • How to use URL in actionscript  Instead of services-config.xml?

    Hi Alls,
    I would like to set my service's url in actionScript (I don't
    want to use compiler option -services witch need to recompile swf
    if you change service's url).
    I search for a long time on google but I found nothing, and
    adobe documentation isn't very clear.
    Thank for help!!!

    If you are relying on a services-config.xml file, then this
    must be provided
    at compile time because the compiler uses it to generate
    code.
    If you're not using <mx:DataService>, you can actually
    avoid compiling against
    a services-config.xml file. This is because for the other
    services, such
    as <mx:RemoteObject> or <mx:WebService
    useProxy="true"> or <mx:HTTPService
    useProxy="true">, the main thing the compiler does from
    services-config.xml
    is to generate the code to instantiate the set of channels
    that should be
    used to contact a destination in LCDS.
    Well... you can do that programmatically in ActionScript...
    something like
    this:
    import mx.messaging.ChannelSet;
    import mx.messaging.channels.AMFChannel;
    private function channelInit():void
    var channelSet:ChannelSet = new ChannelSet();
    var channel:AMFChannel = new AMFChannel(null, "
    http://{server.name}:{server.port}/mycontext/messagebroker/amf");
    channelSet.addChannel(channel);
    myRemoteObject.channelSet = channelSet;
    Just make sure you call this initialization code before you
    make any service
    requests. If you're proxied WebServices, be sure that you use
    the ActionScript
    API instead of the MXML tag so that you can delay when
    loadWSDL() is called
    because you'll want to setup the channelSet first.
    Regards,
    Pete
    Hello FredFlex,
    > Hi Alls,
    >
    > I would like to set my service's url in actionScript (I
    don't want to
    > use compiler option -services witch need to recompile
    swf if you
    > change service's url).
    >
    > I search for a long time on google but I found nothing,
    and adobe
    > documentation isn't very clear.
    >
    > Thank for help!!!
    >

Maybe you are looking for

  • How to restore a user's calendar agenda

    How to restore a user's Calendar agenda When you delete users from LDAP and then re-add them to a Calendar node, they will be assigned new nscalxitemid's. However, if you have not run any of the tools for removing these "orphan" entries, the old nsca

  • VAT Registration number in FB60

    Hello SAP experts, May any body advise me how can I get Vat registration numger in FB60 automatic from Vendor Master(I hope it should) I am not seeing Vat registration number(field is in display mode) in FB60 while doing invoice for the vendors where

  • How do I rearrange order of photos inside an iPhoto album?

    Is anyone having similar problems? I cannot seem to drag them around to change the order of my photos within the album inside iPhoto. Any help is much appreciated. Thank you.

  • Unable to uninstall the CC versions on my PC

    I installed the latest CC (2014) versions of Adobe apps both on my Mac and my PC. To my surprise, I found that the CC versions are still in my C drive, taking up lots of valuable disk space. Worse, I cannot uninstall them! The CC versions do not show

  • Soundblaster X-Fi Surround 5.1 Beta Driver 1.02.0061 Problem

    Plain and simple. The Driver does NOT detect my USB Card.