Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think I got it working for CS5 after messing around for a while. Steps you need to do are similar to the <a href="http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver" rel="nofollow">article</a> mentioned above, but with slight changes for Dreamweaver CS5. So five steps to go through and please make a test after each step to make sure you are on the right path.</p> <ol> <li><strong>Add *.gsp file extension to Open Dialog.</strong> Edit %APPDATA%\Adobe\Dreamweaver CS5\en_US\Configuration\Extensions.txt to add "GSP:Groovy Server Pages" (no quotes) to the bottom of the file, as well as GSP extension to the first line just before :All Documents. Now restart Dreamweaver CS5 and test if File > Open... dialog has GSP extension in the list.</li> <li><p>Now we need to <strong>add correct document type so Dreamweaver CS5 knows about GSP.</strong> Edit %DreamweaverInstallationDirectory%\configuration\DocumentTypes\MMDocumentTypes.xml to add the following document type as the last node.</p> <p><code>&lt;documenttype id="GSP" servermodel="JSP" internaltype="Dynamic" winfileextension="gsp" macfileextension="gsp" file="Default.gsp" writebyteordermark="false" mimetype="text/html"&gt; &lt;TITLE&gt;GSP&lt;/TITLE&gt; &lt;description&gt;Groovy Server Pages (GSP) document&lt;/description&gt; &lt;dtdcontext&gt;html&lt;/dtdcontext&gt; &lt;/documenttype&gt;</code></p></li> </ol> <p>If you want to provide Title and Description as localized strings refer to <a href="http://help.adobe.com/en_US/dreamweaver/cs/extend/WS5b3ccc516d4fbf351e63e3d117f53d6108-7ffd.html" rel="nofollow">this</a> article.</p> <ol> <li><strong>Create template for new document.</strong> Copy %DreamweaverInstallationDirectory%\configuration\DocumentTypes\NewDocuments\Default.jsp to Default.gsp, edit it to remove first line. (You can edit this file as you like as it acts as a template for newly created file). Now restart Dreamweaver CS5 and test if File > New... dialog has GSP Page Type with your description in place. Test new file creation.</li> <li><p><strong>Setup GSP tag library.</strong> Download and unpack <a href="http://www.bitwalker.nl/wp-content/uploads/2007/09/gsptaglibrary.zip" rel="nofollow">GspTagLibrary for Dreamweaver</a>. Copy GSP folder with lots of *.vtm files into %DreamweaverInstallationDirectory%\configuration\TagLibraries. Edit %APPDATA%\Adobe\Dreamweaver CS5\en_US\Configuration\TagLibraries\TagLibraries.vtm to add content of gspTagLibrary.vtm as a last node. Replace first line with the following:</p> <p><code>&lt;taglibrary name="GSP tags" doctypes="GSP" id="DWTagLibrary_GSP" prefix="&amp;lt;g:"&gt;</code></p></li> </ol> <p>Also add GSP into doctypes of &lt;taglibrary&gt; with id="DWTagLibrary_html" (should be very first node). Do the same changes for %DreamweaverInstallationDirectory%\configuration\TagLibraries\TagLibraries.vtm just in case. Restart Dreamweaver CS5 and make sure you can see GSP tags library in Edit > Tag Libraries... with correct Tag prefix (g:). Check if the 'Used in: GSP' checkbox is ticked for 'GSP tags' and 'HTML tags'.</p> <ol> <li>And as the last step we have to enable code coloring. Edit %APPDATA%\Adobe\Dreamweaver CS5\en_US\Configuration\CodeColoring\CodeColoring.xml to search &amp; replace ',JSP,' with ',JSP,GSP,' (no quotes and pay attention to commas). Also find the line &lt;sampleText doctypes="JSP"&gt; and add GSP doctype there, like &lt;sampleText doctypes="JSP,GSP"&gt; (if you really want to you can create your own GSP code sample the same way as the JSP's one). Do same changes in %DreamweaverInstallationDirectory%\configuration\CodeColoring\CodeColoring.xml just in case.</li> </ol> <p>Restart Dreamweaver CS5 and test if Edit > Preferences... > Code Coloring has GSP document type. Click 'Edit Coloring Scheme' to test if Preview has the code sample with code coloring as well as GSP tags mentioned in 'Styles for' list. And finally open up any of GSP files and check if it has code coloring for HTML, CSS, JavaScript and GSP tags.</p> <p>That's it! Hope this helps to someone! And thanks to Harald Walker for the <a href="http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver" rel="nofollow">article</a> I based my research on.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload