Create custom code colouring for additional file types

Hi All,
I spend a lot of time editing .ini files in Dreamweaver (in my case langague files for custom Joomla extensions). Although the file format is extremely  simple, particularly in the way that they re used in this context, I would like to improve the readability by adding code coloring  for strins, standard text and comments.
I haven't been able to find any really useful information on the web about how to go about doing this.
From what i can gather, the steps are
Get Dreamweaver to recognise the file type (editing Extensions.txt and MMDocumentTypes.xml?)
Add the code coloringxml file.
So far I've had no success with the first step, so haven't tried the second.
It would be great if I caould also add it as an option in the New File dialog.
If some kind and clever person could point me in the right direction, it would be much appreciated.
I'm in Dreamwaever CC on Windows 7, if that's relevant
Cheers
Keith

From what i can gather, the steps are
Get Dreamweaver to recognise the file type (editing Extensions.txt and MMDocumentTypes.xml?)
Add the code coloringxml file.
So far I've had no success with the first step, so haven't tried the second.
It would be great if I caould also add it as an option in the New File dialog.
What have you tried so far that made you think that you were not successful?  To add new file extensions to be recognized in DW, you need to go to:
Edit >> Preferences and then look for something like in this picture:
Now this is in CS6 and I suspect the steps should be similar in CC.  If not then CC is a step backwards in terms of progress in current technology IMO.  I don't use CC so can't comment any further here.
Good luck.

Similar Messages

  • Custom HoverPanel for Multiple File Types Preview

    Hi Everyone,
    We Have a requirement to customize SP2013 Search Results webPart to List down multiple file types (Word, Excel, PowerPoint, PDF, Images, etc). we created our own Design Template for Search Results Item to show managed Properties we require. and we need to
    create a Hover Panel to show the preview of those files. we tried to achieve this, but failed. can anyone please provide us a Solution for this ?
    Thank you!

    Hi  Mohamed,
    According to your description, my understanding is that you want to customize Hover Panel for multiple file type.
    For achieving your demand, you can refer to these blogs:
    http://sharepointfieldnotes.blogspot.com/2012/11/customizing-sharepoint-2013-search.html
    http://yeshagrawal.blogspot.com/2013/06/sharepoint-2013-search-adding-hover.html
    http://blogs.technet.com/b/tothesharepoint/archive/2013/09/17/how-to-display-values-from-custom-managed-properties-in-the-hover-panel-in-sharepoint-server-2013.aspx
    http://www.sharepointnutsandbolts.com/2014/01/extending-SP2013-Office-365-search-hover-panel.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support
    Thank you So much Eric,
    The First Link "http://sharepointfieldnotes.blogspot.com/2012/11/customizing-sharepoint-2013-search.html"
    Serves my purpose 100%, but seems like it has 3rd party Product Involved. can i achieve the same Results without using any 3rd Party Tools ?

  • How to add support for new file type.

    Using the ESDK, I would like to add support for new file type ( a new extension). this new extension will function like any other non visual code editor but will have specific syntax highlighting, code folding and explorer.
    I am trying ot figure out if I need to create a new editor or use existing JDeveloper code editor and add support for new file type. Does anyone have a high level outline on how to do this using the ESDK that is specifically targeted at adding new file type support for a text based code editor?
    I have looked at the Samples and keep going in multipe directions. It would be cool if there was an example that was how add syntax higlighting for new file type.
    Thank you

    Brian, thank you. I looked at this extension and it answered a lot of questions for me. I was going in the right direction but needed a little help and bost of confidence, this is just what I needed. I created the LanguageSupport, LanguageModel, Addin, Node and TextDocument that are specific to the new file type. I was getting hung up on how to hook this into the JDevelpoer editor. I keep thinking I have to create a custom editor but it looks like I don't have to and it looks like I can associate this file support with the editor framwork, for version 10.1.3.2, with the following in the Addin Initilize() method.
    Recognizer.mapExtensionToClass(MY_EXTENSION, MyNode.class);
    CodeEditor.registerNodeType(MyNode.class, MY_EXTENSION);
    LanguageModule.registerModuleForFileType(new MyLanguageModule(), MY_EXTENSION);
    I have done this but still not able to recognize the new file type.
    At this point, I just want to be able to recognize the new file and display it's associated icon or display a messare to the message log. I put a System.out.println("test") in the Initilize() method of my addin. then I registered MyAddin in the extension.xml. JDeveloper sees this new extension and it is loaded but I have not been able to show the test message or display the new icon when I open the new file type.
    extension.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <extension xmlns="http://jcp.org/jsr/198/extension-manifest"
               id="teisaacs.jdev.myext.MyAddin" version="1.0.0" esdk-version="1.0"
               rsbundle-class="teisaacs.jdev.myext.resources.MyResBundle">
        <name rskey="EXTENSION_NAME">My Code Editor</name>
        <owner rskey="EXTENSION_OWNER">Me</owner>
        <dependencies>
            <import version="10.1.3">oracle.jdeveloper</import>
        </dependencies>
        <hooks>
            <jdeveloper-hook>
                <addins>
                    <addin>teisaacs.jdev.myext.MyEditorAddin</addin>
                </addins>
            </jdeveloper-hook>
            <feature-hook>
                <description>My Code Editor</description>
                <optional>true</optional>
            </feature-hook>
            <document-hook>
                <documents>
                    <by-suffix document-class="teisaacs.jdev.myext.model.MySourceDocument">
                        <suffix>my</suffix>
                        <suffix>MY</suffix>
                    </by-suffix>
                </documents>
            </document-hook>
            <editor-hook>
                <editors>
                    <editor editor-class="teisaacs.jdev.myext.editor.MyEditor">
                        <name rskey="EXTENSION_NAME">My Editor</name>
                    </editor>
                    <mappings>
                        <mapping document-class='teisaacs.jdev.myext.model.MySourceDocument">         
                            <open-with editor-class="teisaacs.jdev.myrext.editor.MyEditor"
                                       preferred="true"/>
                            <open-with editor-class="javax.ide.editor.CodeEditor"/>
                        </mapping>
                    </mappings>
                </editors>
            </editor-hook>
        </hooks>
    </extension>
    public class MyAddin implements Addin {
        public static final String MY_EXTENSION = "my";
        public void initialize() {
            System.out.println("MyEditor Constructor");
            new MyLanguageModule();
            Recognizer.mapExtensionToClass(MY_EXTENSION, MyNode.class);
            CodeEditor.registerNodeType(MyNode.class, MY_EXTENSION);
            LanguageModule.registerModuleForFileType(new MyLanguageModule(), MY_EXTENSION);
    }I have added and removed the editor hook along with many other modificaitons to the extension.xml but still not recognizing the new file extension.
    Todd

  • Return The remote server returned an error: (403) Forbidden error for some file types

    hi
    am using below code to get the byte array 
    byte[] myDataBuffer = client.DownloadData((new Uri(sourceUrl)));
    for source of type .txt/.jpg no problem with accessing.but the file type with .master/.wsp/.cs
    it is returning "The remote server returned an error: (403) Forbidden error for some file types" Error.how can i get rid of this.please help me
    Thanks in Advance

    Hi,
    It seems there is something wrong with your code, from your code the account and key are the same, because their appsetting name are the same.
    string account = ConfigurationManager.AppSettings["StorageAccountName"];
    //string account = CloudConfigurationManager.GetSetting("StorageAccountName");
    //string key = CloudConfigurationManager.GetSetting("StorageAccountAccessKey");
    string key = ConfigurationManager.AppSettings["StorageAccountName"];
    string connectionString = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}", account, key);
    return CloudStorageAccount.Parse(connectionString);
    If you use CloudConfigurationManager.GetSetting, please consider set azure project as the startup project, if not, this value will be null, this resulted in solution being started as a web project that didn't run inside the Azure emulator. Since CloudConfigurationManager.GetSetting
    tries to get setting by contacting Azure (or Azure emulator in this case), and it is not running, it returns null.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Custom code activity - Could not find type in assembly

    I've searched through but cannot find an adequate answer.
    Im trying to create a code activity for a Sharepoint 2013 workflow.
    I have created the code activity, the workflow and add the custom code activity to it.
    As soon as i hit "Build" the code activity disappears from Toolbox and i get the "Could not find type ... in assembly ..."
    Any idea how to solve this?
    Thanks in advance

    For sharepoint 2013 , try to install workflowmanager 1.0 and workflowclient to create workflow, they will work better
    Hi Inderjeet, thanks for your reply. These are already installed

  • It is necessary to create one header data for each file to be sent to CDFS.

    hi GUYS
    my sce anrio is FILE-XI-PROXY
    REQUIREMENT IS
    SOURCE FILE                      TARGET FILE WILL BE
    H1                                             H1                        H1                    H1
    I1                                               I1                         I2                      I3
    I2                                                F1                        F1                    F1
    I3                                           
    F1
    It is necessary to create one header data for each file to be sent to TARGET. Each file will be related to only one SAP Company Code.
    Thanks
    NAG

    aa

  • How to skip line for delimited file type?

    Hi, i wanna ask how to skip (example: the first two line) for delimited file type?
    Thanks...
    Here is my script
    Function NY_Skip06Center [strField, strRecord]
    ' FDM DataPump Import Script:
    'Created by: FDM_Admin
    'Date created: 2/28/2006
    Dim strEntity
    'Check first two characters of entity
    For strEntity = 1 to 6
    'Skip line
    Res.PblnSKip = True
    Next strEntity
    End if
    End Function
    But it returns this error when imported
    Error: An error occurred importing the file.
    Detail: Object variable or With block variable not set
    Anyone knows what's wrong
    Edited by: user649207 on Mar 19, 2010 2:15 AM
    Edited by: user649207 on Mar 19, 2010 3:04 AM

    strAcc = DW.Utilities.fParseString (strField, 1, 1, chr(9))
    I didn't look closely enough last time. The above is illogical. The parsestring function parses a string based on a delimiter.
    The function has these arguments:
    String to Parse
    How many fields are in the string
    The parsed field to return
    Field delimiter
    In the above, strField is returning the field specified in your import format. You are also saying that there is a total of 1 field. If that were the case, you wouldn't need to parse anything.
    I am guessing that your call needs to look something more like this:
    strAcc = DW.Utilities.fParseString (*strRecord*, *8*, 1, chr(9))
    Make sense?
    If not, maybe you can include a few sample lines from your data file and that will make it easier to help you.
    Is your import format fixed or delimited?

  • File Dialog (Details View and Multiple Selections for View File Type)

    I would like to use the generic windows dialog box found in the toolbar under:
    File I/O/Advanced File Functions/File Dialog
    What I would like to do is have multiple selections for the file type, for example one menu selection is *.txt, another is *.rtf, another is *.csv, etc. Listing a single type is straightforward.
    Also does anyone know if there is a way to have the dialog open in the DETAILS view automatically?
    Thanks for any help!
    Carlton

    Hi,
    You can do it in following ways:
    1. Write in pattern input the string "*.txt; *.csv; *.rtf". This will show to the user only files with this extensions in the dialog.
    2. Another way is to create ring or menu where user could specify the extension. Depending on this extension you could wire the appropriate string to the pattern input of "File Dialog.vi"
    I have made an example.
    Good luck.
    Oleg Chutko.
    Attachments:
    fileopen.vi ‏42 KB

  • How to remove or disable "Finder Preview" for a file type?

    I have some large .hdr files which are large image files, and cause PathFinder (but I guess the issue is not really Finder or PathFinder but the preview app being called in Preview feature) to beachball forever. The problem is the calculation of image size and thumbnail display when either clicking on the .hdr image file (which brings in preview) or ctrl-clicking on the file which kicks off image size calculation for contextual menu in PathFinder (confirmed by PathFinder support). While I can get around ctrl-clicking until this issue is fixed, there is no walking around preview feature for thumbnail viewing unless I tell Preview not to consider .hdr files as image files (while still being able to view thumbnails of other image formats such as jpg and tif, which is what I will like to do).
    Those .hdr files are not valid Photoshop radiance files. They are generated by Photomatix (www.hdrsoft.com). So, Preview seems to be having issues with it. Whenever I click on a large file (no problem with an empty file labeled with .hdr extension), PathFinder memory shoots from 50+MB to 500+MB and it beachballs forever until I kill it.
    So, I will like to tell Preview not to consider .hdr files as image files. Pointers on how to do this will be appreciated. I am guessing that Preview.app is being called by Finder (same thing should apply to PathFinder) to calculate image sizes and render thumbnails. Please correct me if I am wrong about it.

    You can turn off the preview column in Finder's Show View Options. I don't know if this will help with your problem. Also, I 'think' if you use a program to create a preview icon for the file (assuming it supports that format) the Finder will use that. It sounds like you want to keep icon preview selected, so I don't think there is a way to conditionally show the previews. You can also set Finder's PreviewDisclosureState to 0, which hides the preview icon--it controls the disclosure triangle in the preview column. Again, I don't know how this will affect what you want.

  • It should be possible to set default behavior for all file types

    It should be possible to set a default action for all file types. I'm so tired of having to manually sit and say "save this file" because Firefail always defaults to "open with" and has disabled the "Do this automatically for files like this from now on."
    And spare me the zealotry religious excuses for why its the fault of websites and not Firefail
    ''edited to remove swearing''

    I do want users to have full control to be able to set any folder view they want by using Apply to Folders; I just want to set the initial/default view to Detail because that matches what the majority of my users want.
    That is, what registry setting changes when I go to a picture folder, change the view to Detail, and click Apply to Folders? Having done that, I still retain the ability to change it to some other view and apply that to folders. But what registry setting
    represents the change I just made when applying Detail view to all Picture folders.?
    This settings is simple via GUI, but it is related a lot of registry keys, I made a test in my machine, capture the "Apply to Folders" process using Regshot tool (this is a small tool which can compare the regsitry changes after you change some
    settings), and this is the result:
    this is part of the registry changes, a plenty of registry keys and values need to be changed. hard to list them here. if you have interests, I recommend the tool Regshot, it can help you capture the regsitry changes.
    NOTE: Please Note: The third-party product discussed here is manufactured by a company that is
    independent of Microsoft. We make no warranty, implied or otherwise, regarding this product's
    performance or reliability.
    Yolanda Zhu
    TechNet Community Support

  • PDF SCANS ERROR MESSAGE: CAN'T "OPEN THE DEFAULT APP FOR THIS FILE TYPE" EG. PDF

    OFFICEJET PRO 8600 PLUS , WIN 7, SCAN TO COMPUTER AS A PDF FILE.  ERROR MESSAGE: "
     CAN'T "OPEN THE DEFAULT APP FOR THIS FILE TYPE" EG. PDF

    Hi @reddog2,
    I would contact HP Cloud Services for assistance. Call 1-855-785-2777.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How do you make console apps the default application for a file type?

    I have a console movie player, mplayer, that I like a lot. I've compiled it from source on my intel core2 macbook pro and it works fine. There is no gui, but to play movie files you open up a terminal and type the command mplayer /path/to/file. I would like mplayer to play a movie file automatically when I double click on the file, but I can't seem to figure out how to do it. I tried setting it in the file info dialogue, but when I go to the path of the binary I want, it is not selected. How can I set a console app as my default application for my file type?

    there is a GUI mplayer for OS X. why don't you use it instead of the command line one?
    if you insist on using the command line mplayer then the only way to do this is to put a GUI wrapper on it. this can be done with automator or apple script for example. but really, why don't you just use the GUI mplayer?

  • Unable to create custom phone labels for new contacts since the upgrade

    I have a AT&T iphone 4 version 4.3.1 and since the last couple of recent upgrades I have been unable to create custom phone labels for any new contacts because the lower label options are gone. This is only a problem with new contacts. My existing contacts with custom labels are still there and if I edit those contacts the table that has create custom labels is also still there, but not for new contacts. Has anyone else noticed this problem.

    If you read the error above about the hash and manifest, you will se this is a RB Setup error and not a CM12 error. You would be better to post your question in the SQL forum or better yet to use BIDS instead.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Icons in Finder for many file types are now blank

    For no reason at all when I booted my Mac today many of the icons for my file types have just dissapeared! Anyone have any idea how to get them back? It is REALLY annoying because it makes files look like the are a folder deeper than they really are when using the list view which I always do. It's not all icons though but noticably it's all archives (.zip, .tar.gz .jar) and CSS, JS and JSP files.

    For the second tiem this week the answer to my problem with OS X is a re-boot. I'm used to that working on Windows but not on OS X. This kind of thing should not be happening but it is and it didn't used to happen.

  • How can we create new pricing requirement for a condition type

    Hi All,
    I am in urgent need of creating new pricing requirements for a condition type.
    Or if there is already a conditin type existing and we want to make changes in the pricing requirements of that condition type, How can we do so ?
    In short if you can let me know how does pricing get impacted by the condition types.
    Thanks
    Mark

    Hi!
    The common transactions for condition mantaining are VK11, VK12, VK13.
    In SPRO - Sales and distributoin - Basic function - Pricing - Pricing control - *.
    Is this what you want?
    Regards
    Tamá

Maybe you are looking for