![]() The syntax within these tags is similar to the one listed for Java, but a lot of keywords and comments are different. _$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 _$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ NOTE: You can add it further down, but it's a long document, so I suggest the start. Open the file " CodeColoring.xml" and add the following line of text after the first line: Go to: " C:\Users\anoske\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration\CodeColoring" Step 3) Creating a new Syntax Color Scheme ( CodeColoring.xml) This step will only works if you have admin privileges. NOTE: If you can't edit this file, try copying the file to your (Windows) desktop, editing there and then dragging back in. Unfortunately python is very different from all the default listed languages, meaning you'll probably want to read on and see how to make your own color scheme. " and modify it to " ![]() Also note that the number in 'mmdocumenttypes_70' and 'mmdocumenttypes_71' should follow on from the numbers above it. This color scheme is created in a separate file. py files should map to a new color scheme with the id "Python". Open the file " MMDocumentTypes.xml" and add the following line of text after the 2nd last line, just before the " " tag: Go to: " C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration\DocumentTypes" ![]() Step 2) Mapping a File Extension to ( MMDocumentTypes.xml) This goes for the files in step #3 and #4 too." TIP: To make this change for all users, edit the same file under " C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration instead. When you open such a file, however, it will still be in black-and-white: in other words this step alone is pretty useless! In practical terms, this means that when you click the menubar: File > Open or File > Save As the option " Python Files (*.py)" will appear on the drop down list of file types. If you restart Dreamweaver it will now "recognize". Open the file " Extensions.txt" and add the following line of text to the end: Go to: " C:\Users\you\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration" Step 1) Adding a New File Extension to Dreamweaver's Recognized Extensions ( Extensions.txt) Avoid making these backup copies to the same directory, as this might cause unexpected errors, despite you giving the file a different name ( see here). By doing this it should be easy to revert to the old version if you make any mistakes. ![]() WARNING: Before changing each file I strongly recommend you make a (backup) copy of each to your desktop. On a MAC computer you'll find all the files under: /Users/anoske/Library/Application Support/Adobe/Dreamweaver CS5/en_US/Configuration/etc. ![]() Be warned that for different versions of Windows and/or Dreamweaver you will probably find the files located in different slightly locations ( see here). These instructions have been tested with Window 7 and Adobe Dreamweaver CS5, but work on MAC too. Below I have outlined instructions on exactly how to perform these tasks using python as my example. Fortunately there is a way to add extra extensions and syntax highlighting "schemes" to Dreamweaver by editing a few of Dreamweaver's XML/configuration text files. One big example of a file type that isn't recognized is Python (.py) files. I'm a big fan of Dreamweaver, and it comes with a big built in list of mappings from file types to code syntax highlighting, but every so often you might come across a file type which isn't highlighted the way you want. NOTE: This page is a daughter page of: Adobe Dreamweaver ![]()
0 Comments
Leave a Reply. |