Syntax Highlighting for custom file extensions

Hi everyone.
I am currently working on a PHP project, and we are using
*.thtml files for templates. The file isn't supported by
Dreamweaver, as it's a fictional file extension. First I couldn't
even open it with Dreamweaver, but after I added it in
settings/file types, it worked.
Now my question - how can I activate syntax highlighting for
this filetype? It contains HTML and PHP, so it should work with the
same highlighter as all the other file types do..
Can someone help me out?
Thanks.
- Chris

Got it
http://alexle.net/archives/119

Similar Messages

  • How do I enable syntax highlighting for jspf files on Dreamweaver CS6 on Windows?

    I followed the instructions (which I modified for CS6) in this posting: http://blog.metameister.com/blog/2011/04/08/open-new-file-types-and-add-syntax-highlightin g-in-dreamweaver-cs5-on-window…
    but it did not work for CS6.
    How do I enable syntax highlighting for jspf files on Dreamweaver CS6 on Windows 7?
    cheers
    Marvin in Edmonton

    Ok, I figured it out after hunting for a few hours.
    Step 1. Add the File Type
    In Dreamweaver’s toolbar:
    Select Edit > Preferences; 
    under File Types / Editors, add .jspf to the line “Open in Code View:”.
    Step 2. Extensions.txt
    Add file type .jspf to the Extensions.txt files. There are two of these files:
    C:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration
    C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS6\configuration
    Step 3. MMDocumentTypes.xml
    Add jspf to the MMDocumentTypes.xml files. Open this file in Notepad or Text Editor. Do not modify the Dreamweaver configuration files within Dreamweaver.
    There are three MMDocumentTypes.xml files to be modified: 
    C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS6\configuration\DocumentTypes
    C:\Users\mhaagsma\AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration
    C:\Users\mhaagsma\AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration\DocumentTypes\
    Step 4. Restart Dreamweaver
    Hopefully the file type will now be recognized and appear with syntax highlighting.

  • How to enable syntax highlighting for jspf files on Dreamweaver CS5.5 on Mac

    I ran into an issue where I couldn't get the color coding (color coding style) for java server pages fragments (.jspf) files to show syntax highliting.
    I followed the adobe instructions on Changing and adding file extensions recognized by Dreamweaver without any luck.
    Here is the solution that worked for me:
    On a Mac:
    1. Edit the /Users/YOUR USER/Library/Application Support/Adobe/Dreamweaver CS5.5/en_US/Configuration/DocumentTypes/MMDocumetTypes.xml
    Note: the Adobe instructions tell you to edit /Applications/Adobe Dreamweaver CS5.5/Configuration/DocumentTypes/MMDocumetTypes.xml (Editing this file didn't do anything for me, so you need to change the file above instead)
    Find,
    <documenttype id="JSP" servermodel="JSP" internaltype="Dynamic" winfileextension="jsp,jst" macfileextension="jsp,jst" file="Default.jsp" writebyteordermark="false" mimetype="text/html">
    Replace with,
    <documenttype id="JSP" servermodel="JSP" internaltype="Dynamic" winfileextension="jsp,jst,jspf" macfileextension="jsp,jst,jspf" file="Default.jsp" writebyteordermark="false" mimetype="text/html">
    2. Edit the /Users/YOUR USER/Library/Application Support/Adobe/Dreamweaver CS5.5/en_US/Configuration/Extensions.txt
    In the All: section on top add the jspf extention right after jsp in my example it looked like this
    HTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,JSON,AS,ASC,ASR,XML,XSL,XSD,DTD,XSLT,RSS,RDF, LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4,PHP5,PHP-D IST,PHTML,JSP,WML,TPL,LASSO,JSF,VB,VBS,VTM,VTML,INC,SQL,JAVA,EDML,MASTER,INFO,INSTALL,THEME,CONFIG,MODU LE,PROFILE,ENGINE,SVG:All
    and I added the jspf and it looks like this now,
    HTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,JSON,AS,ASC,ASR,XML,XSL,XSD,DTD,XSLT,RSS,RDF, LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4,PHP5,PHP-D IST,PHTML,JSP,JSPF,WML,TPL,LASSO,JSF,VB,VBS,VTM,VTML,INC,SQL,JAVA,EDML,MASTER,INFO,INSTALL,THEME,CONFIG,MODU LE,PROFILE,ENGINE,SVG:All
    That's it, Quit Dreamweaver and open it up again. Open the .jspf file and see the color coding (syntax highlighting)
    Hope this helps you and seves you time figuring it out. If this helped, do a good thing, next time you figure something out, tell others about it to save their time too, like I did. Enjoy.

    TheGrandNabib wrote:
    I don't seem to have a user Library folder, my only Library folder is on the same level as my Users folder.
    From Locating your personal configuration folder in the Dreamweaver FAQ:
    In Mac OS X (Lion and Mountain Lion), open Finder and press Shift-Cmd-Go. Type ~/Library/Application Support in the dialog box, and click Go. You should then be able to find the configuration folder.

  • Custom File Extension for Microsoft Access Text Driver (*.txt, *.csv)

    I'm trying to use a custom file extension for the Microsoft Access Text Driver (*.txt, *.csv) driver.
    I have updated the FileExtns registry to have my new extension.
    When I issue the following it does not work.
    select [NoName] 
    from openrowset('MSDASQL'
               ,'Driver={Microsoft Access Text Driver (*.txt, *.csv)};
                    DefaultDir=c:\filedir'
               ,'select * from "file.lst"')
    If I make the file a .csv it works fine.  However, if it has an extension of not CSV or TXT (in this case .lst, which is in the registry setting) extension it throws the following error and cannot seem to find a solution to it. 
    OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Text Driver] Cannot update. Database or object is read-only.". Msg 7350, Level 16, State 2, Line 1 Cannot get the column information from
    OLE DB provider "MSDASQL" for linked server "(null)".
    In addition, (although I can probably find this elsewhere), I need to have the first line 'BLANK' so that it does not miss data (there is no header row).  Is there  a way to use OPENROWSET without BULK to basically include all rows as data?
    Any help is appreciated.

    Hi,
    According to your description, I did a test with your script, and got the same message as your post. Usually, by default, the Microsoft Access Text Driver (*.txt, *.csv) supports the four extensions file, such as *.asc, *.csv, *.tab, *.txt. To solve this issue,
    I recommend you try to save the LST file in the above format, then use OPENROESET to get data from the supported extensions file in SQL Server.
    In addition, the
    OPENROWSET function is mainly used to retrieve remote data from an OLEDB data source, when you use OPENROWSET without BULK, provider_name is a necessary parameter in the script. However, the OPENROWSET (BULK...) is mainly called from a SELECT…FROM clause
    within an INSERT statement, when importing bulk data from a data file into SQL Server table. Thus if you need to import bulk data, you should use the basic  syntax: INSERT ... SELECT * FROM OPENROWSET(BULK...), also there are some alternatives, such as
    BULK INSERT
    and
    BCP .
    Thanks
    Lydia Zhang

  • Pacman.conf file syntax highlighting for nano

    Hi, here is pacman.conf file syntax highlighting for nano. It may be useful for those who edit their pacman.conf regularly.
    Just put this lines in the end of your /etc/nanorc or ~/.nanorc file:
    # syntax highlithing in pacman.conf
    syntax "pacman.conf" "pacman\.conf$"
    color brightwhite start="\[" end="\]"
    color brightyellow ".*="
    color brightred "=.*"
    color white "="
    color brightblue "\[|\]"
    color brightcyan start="/|http|ftp" end=".*"
    color green "#.*"
    In this thread you can find rc.conf file syntax highlighting.

    thank you! i always accidentally open up nano, find out text is practically unreadable with its default colours, close it and then wait the horrific 4 seconds it takes for emacs to spring to life.

  • Rc.conf file syntax highlighting for nano

    Hey, here is rc.conf file syntax highlighting for nano. It may be useful for those who edit their rc.conf regularly.
    # syntax highlithing in rc.conf
    syntax "rc.conf" "rc\.conf$"
    color brightwhite ""(\\.|[^\"])*""
    color brightwhite "\((\\.|[^\"])*\)"
    color brightred "![^> ]+"
    color brightcyan "@[^> ]+"
    color brightyellow ".*="
    color white "="
    color brightblue ""|\(|\)"
    color green "#.*"
    Put this lines into /etc/nanorc or ~/.nanorc

    thank you! i always accidentally open up nano, find out text is practically unreadable with its default colours, close it and then wait the horrific 4 seconds it takes for emacs to spring to life.

  • DW CS3 - custom file extension no longer working correctly

    Hi - for a particular job, I needed to use a custom file
    extension .htmx and it has been working fine.
    However, I went into DW CS3 today, and the file opens in the
    DW editor, but the code coloring and code hints etc seem to be
    broken.
    I've checked the Extensions.txt and MMDocumentTypes.xml
    files, and all seems present and correct - see
    this screencast to
    see the problem.
    Any ideas why it's not working? (I'm on Vista Business, but
    it has definitely been working and now isn't....)
    Mike

    Well, I managed to fix it by overwriting my
    MMDocumentTypes.xml file with a clean version from another machine.
    Weird.

  • Using an * for all file extensions in a class selection parser

    Using iFS 1.1.9....
    I have successfully gotten a custom document class created using
    xml. I have used the following code to set up the parser, etc.
    If I use a specific file extension like txt the parser will
    upload the file as my custom class. However, if I use * for all
    file extensions the parser uploads all files as Document class.
    Here is what I am using:
    <?xml version='1.0' standalone = 'yes'?>
    <!--RegisterQualParser-->
    <PropertyBundle>
    <Update
    Reftype='ValueDefault'>ParserLookupbyfileExtension</Update>
    <Properties>
    <Property Action = 'add'>
    <Name>*</Name>
    <Value Datatyupe = 'String'>
    oracle.ifs.beans.parsers.ClassSelectionParser
    </Value>
    </Property>
    </Properties>
    </Propertybundle>
    When the above is uploaded I can go into iFS Manager and see
    that the parser has been registered with * as the file extention.
    I then upload this:
    <?xml version='1.0' standalone = 'yes'?>
    <!--RegisterCustomClass-->
    <PropertyBundle>
    <Update
    Reftype='ValueDefault'>IFS.PARSER.ObjectTypeLookpByFileExtension
    </Update>
    <Properties>
    <Property Action = 'add'>
    <Name>*</Name>
    <Value Datatype='String'>QualDocument</Value>
    </Property>
    </Properties>
    </PropertyBundle>
    If I have txt or some other extension for the Name in place of
    the * and upload a document it will put the class as
    QualDocument. If I have the * it defaults to Document.
    Is there a way to have the parser make all uploaded documents
    QualDocument instead of Document without doing this for each and
    every possible file extension?
    Thanks.

    Using iFS 1.1.9....
    I have successfully gotten a custom document class created using
    xml. I have used the following code to set up the parser, etc.
    If I use a specific file extension like txt the parser will
    upload the file as my custom class. However, if I use * for all
    file extensions the parser uploads all files as Document class.
    Here is what I am using:
    <?xml version='1.0' standalone = 'yes'?>
    <!--RegisterQualParser-->
    <PropertyBundle>
    <Update
    Reftype='ValueDefault'>ParserLookupbyfileExtension</Update>
    <Properties>
    <Property Action = 'add'>
    <Name>*</Name>
    <Value Datatyupe = 'String'>
    oracle.ifs.beans.parsers.ClassSelectionParser
    </Value>
    </Property>
    </Properties>
    </Propertybundle>
    When the above is uploaded I can go into iFS Manager and see
    that the parser has been registered with * as the file extention.
    I then upload this:
    <?xml version='1.0' standalone = 'yes'?>
    <!--RegisterCustomClass-->
    <PropertyBundle>
    <Update
    Reftype='ValueDefault'>IFS.PARSER.ObjectTypeLookpByFileExtension
    </Update>
    <Properties>
    <Property Action = 'add'>
    <Name>*</Name>
    <Value Datatype='String'>QualDocument</Value>
    </Property>
    </Properties>
    </PropertyBundle>
    If I have txt or some other extension for the Name in place of
    the * and upload a document it will put the class as
    QualDocument. If I have the * it defaults to Document.
    Is there a way to have the parser make all uploaded documents
    QualDocument instead of Document without doing this for each and
    every possible file extension?
    Thanks.

  • Can Firefox CS5 recognize custom file extensions as PNGs?

    WHen you work with game skins you will have custom file extensions such as .scworld and .scskin that are really PNG files renamed. Does anyone know how to add these as recognizeable extensions in Firefox?

    no, i am still dealing with this problem on both macs,
    mac pro mid 2010 2,8 quad (24GB RAM) and my mbp 15" i7 (4GB RAM)
    where i installed Photoshop CS5.
    on both macs, photoshop always saves files with capital letter file extensions (xxx.TIF or xxx.PSD)
    thats very annoying, as i have to manually rename the file in the finder later.
    and thats for all files i create.
    i really wonder, could anyone from the adobe staff please comment if it is a bug
    or anything else?
    thanks!

  • Opening BATCH file through custom file extension

    I have a situation where I've created my own filetype (.gme) to open my main java file. Each filetype has a corresponding ID which tells the application what instance of it to load. I want the file type to open a batch file which will in turn open the application. Is there code that I can give a custom file extension to open a batch file?

    Check the permissions of that batch file.
    It should be executable for the PI user (<sid>adm in Unix)
    Regards
    Stefan

  • Dreamweaver CC and Windows 8.1 - Can't Find A Valid Editor For This File Extension

    Was running the latest version with no issues and then I loaded Office 2013 .. Now when I am in the remote site and try to double click on a .cfm file, I get a dialog box..Can't Find A Valid Editor For This File Extension..
    I tried the support chat and they said Dreamweaver support was not available, try again later???
    So I thought I would reinstall the CC version and now I can see the Dreamweaver icon next to the files but still ... can't open the file..
    Any assistance would be appreciated?
    Leo

    The issue is only in Windows 8.x where when Dreamweaver CC is installed, it is not able to turn on the file type associations by default.  The workaround for now is to manually add the extensions both within Windows and then within Dreamweaver CC itself.
    Go to Control Panel > Programs > Default Programs > Set Your Default Programs and select Dreamweaver CC and then select 'Choose defaults for this program' and Select All or the extensions you want to open in Dreamweaver CC
    Start Dreamweaver CC and go to Edit > Preferences > File Types/Editors and add '.cfm .cfc' to the extensions and then add C:\Program Files (x86)\Dreamweaver CC\Dreamweaver.exe then click on Apply and Close
    That should be it.
    James

  • FileDialog (filtering for certain file extensions)

    I have used JFileChooser in the past and was modifying my code to use FileDialog instead as it looks better, looks like the one used by every other Windows program and takes less code to get the job done. My
    question is how to filter for certain file extensions in FileDialog as you can in JFileChooser. I cannot seem to figure out how to, so any help would be highly appreciated. Thank you.
    P.S. Also if you know how to turn off all files like you can in JFileChooser, that would also be extremely helpful.

    Go to the JFileChooser tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html and skip to the section entitled "Filtering the List of Files". That sounds like it should answer your question.

  • DW CC: Can't find a valid editor for this file extension

    Hi,
    I am using dreamweaver cc for 1 month now. I have been having difficulty opening .asp file.
    In the File panel, when i click on one of the asp files, the error message is 'Can't find a valid editor for this file extension'.
    To solve this problem, I will right click on the file and choose Open with > Dreamweaver.
    However, this is very inconvenient. Someone pls help!

    You can configure that in your Operating System.  In my version of Windows XP, open any folder and  select TOOLS/FOLDER OPTIONS/FILE TYPES then scroll to the asp file type and select DW as the editor.

  • Can't find a valid editor for this file extension

    When I try to open access from within Dreamweaver I get this
    error message.
    Can't find a valid extension for this file extension
    I have MSACCESS showing in Edit > Preferences > File
    Types Editors
    Many Thanks for any help
    John

    Support for ColdFusion and other databases were removed from DWCC. You can add them back with the Legacy Extension, or adding a paid extension from DMX Zone...
    About 1/2 way down this page for the legacy extension: http://blogs.adobe.com/dreamweaver/
    It's a paid extension, but adds back a lot of the things that were removed...
    http://www.dmxzone.com/go/22072/dmxzone-database-connector-php

  • Syntax Highlighting for MATRIXx MathScript and TPL

    There have been some questions about text editors for MATRIXx, so I wanted to let everyone know about an application note that we just posted. It describes how to configure a syntax highlighter for use with MathScript and Template Programming Language (TPL). There is also an example of how Crimson Editor can be configured. I choose Crimson Editor because it was free, but the same thing can be done in other syntax highlighters. Using a syntax highlighter makes MATRIXx code a lot easier to read.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/C43375149CB01C3186256E530081EAA5
    While I am at it, I am going to point out some other resources. The application note is located on Developer Zone section of our website, where
    you can find other MATRIXx examples and tutorials:
    http://zone.ni.com/devzone/devzone.nsf/webcategories/A92DB8BA2DE149F486256CBC00655A0C?opendocument
    If you have code or examples that you want to share with other users you can submit the example to the Example Code Library:
    http://www.ni.com/devzone/dev_exchange/ex_search.htm
    Suggestions and feedback can be submitted from Product Feedback section of Contact NI:
    http://sine.ni.com/apps/we/nicc.call_me?p_action=country&p_lang_id=US
    And of course the main MATRIXx page is:
    http://www.ni.com/matrixx
    Carl L
    National Instruments

    I found another editor with syntax highlighting capabilities for MATRIXx. The editor is VIM which is based on the Unix VI editor, and is available on both Solaris and Windows.
    www.vim.org
    Carl L
    National Instruments
    www.ni.com/matrixx

Maybe you are looking for

  • Problem in master detail

    Hi , i have implemented a masterd detail page... The master is a single selection table and the detail is a form. in the detail i have dragged and dropped a attribute as SelectBooleanCheckBox my requirement is initially the detail form should not be

  • Signing problem on a PDF

    I am attempting to fill out an application for which is in PDF format. It has an email submit button. It has signature fields that I click on, and nothing pops up to allow me to sign it. I cannot submit until they are signed, and I have tried eberyth

  • Where is my FaceTime icon

    My face time icon is no longer on my home page. How do I retrieve it?

  • Can SCAN IP be used for ftp of files

    Hi, I would like to know, if SCAN IP can be used by clients or applicaitons to FTP files to either of the database nodes? Thanks!

  • Win 7 install freezes I975Xa-YDG/T7200

    I have tried installing the Beta and RC versions, 32 and 64 bit, none of which will get beyond 1% "Expanding files" before the system locks up completely. Even simply booting from the DVD and doing absolutely nothing once the blue screen appears, wil