Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
Cannikinn #1
Install Directory vs. User Directories
So I'm trying to package an extension here and all of the documentation says to
use the $dreamweaver string in the MXI file to let Extension Manager know where
to copy your files. But won't this copy over the default config files? I just
want it to copy over (or append?) to the user config files in the Application
Data directory.
When I try to install I get a bunch of warnings saying that files are about to
be overwritten, am I sure I want to continue. This shouldn't happen, should
it? Then when it should be done it just says "Internal error (please contact
technical support). The extension will not be installed."
To created the extension originally I went in and edited my user config files,
so everything seems to be working. Just when I try to install it as a regular
extension do I have problems.
I added two new document types and some code coloring for them. Here are the
files I'm trying to include in the package (please tell me if I'm going about
this the wrong way):
/Configuration/CodeColoring/CodeColoring.xml
/Configuration/CodeColoring/Colors.xml
/Configuration/CodeColoring/Ruby.xml (my custom file for keywords and crap)
/Configuration/DocumentTypes/NewDocuments/default_ruby.rb
/Configuration/DocumentTypes/NewDocuments/default_rails.rhtml
/Configuration/Strings/DocumentTypes.xml
And then I've also got changes to the Extensions.txt, FTPExtensionMap.txt and
/Configuration/DocumentTypes/MMDocumentTypes.xml but all of those are
documented in the MXI file as instructed (so I assume that goes ahead and
appends those changes automatically, no need to include those files).
And if it helps any, attached is the contents of my MXI file. Thanks for any
help!
<macromedia-extension name="Ruby and Rails Support" version="1.0.0"
requires-restart="true" type="suite">
<author name="Rob Cameron" />
<products>
<product name="Dreamweaver" version="7" primary="true" />
</products>
<description>
<![CDATA[This extension adds Ruby and Rails file support and code
coloring.]]>
</description>
<ui-access>
<![CDATA[When creating a new file, you will see that Ruby and Rails are two
new
filetypes available in the Basic Page grouping. To access color coding, go
to Edit >
Preferences > Code Coloring and select Ruby or Rails from the list.]]>
</ui-access>
<files>
<file source="CodeColoring/CodeColoring.xml"
destination="$dreamweaver/Configuration/CodeColoring/CodeColoring.xml" />
<file source="CodeColoring/Colors.xml"
destination="$dreamweaver/Configuration/CodeColoring/Colors.xml" />
<file source="CodeColoring/Ruby.xml"
destination="$dreamweaver/Configuration/CodeColoring/Ruby.xml" />
<file source="DocumentTypes/NewDocuments/default_rails.rhtml"
destination="$dreamweaver/Configuration/DocumentTypes/NewDocuments/default_rails
..rhtml" />
<file source="DocumentTypes/NewDocuments/default_ruby.rb"
destination="$dreamweaver/Configuration/DocumentTypes/NewDocuments/default_ruby.
rhtml" />
<file source="Strings/DocumentTypes.xml"
destination="$dreamweaver/Configuration/Strings/DocumentTypes.xml" />
</files>
<configuration-changes>
<documenttype-changes>
<documenttype-insert>
<documenttype id="Ruby" internaltype="Dynamic" winfileextension="rb"
macfileextension="rb" file="default_ruby.rb" writebyteordermark="false">
<TITLE>
<MMString:loadString id="mmdocumenttypes_74" />
</TITLE>
<description>
<MMString:loadString id="mmdocumenttypes_75" />
</description>
<dtdcontext>html</dtdcontext>
</documenttype>
<documenttype id="Rails" internaltype="Dynamic" winfileextension="rhtml"
macfileextension="rhtml" file="default_rails.rhtml" writebyteordermark="false">
<TITLE>
<MMString:loadString id="mmdocumenttypes_76" />
</TITLE>
<description>
<MMString:loadString id="mmdocumenttypes_77" />
</description>
<dtdcontext>html</dtdcontext>
</documenttype>
</documenttype-insert>
</documenttype-changes>
<extension-changes>
<extension-insert extension="RB" description="Ruby Files">
<extension-insert extension="RHTML" description="Rails Files">
</extension-insert>
<ftp-extension-map-changes>
<ftp-extension-insert extension="RB" mac-creator="????"
mac-file-type="????" type="ASCII" />
<ftp-extension-insert extension="RHTML" mac-creator="????"
mac-file-type="????" type="ASCII" />
</ftp-extension-map-changes>
</configuration-changes>
</macromedia-extension>
Cannikinn Guest
-
#40397 [NEW]: php.ini In Local User Directories
From: card at genesisnetsolutions dot com Operating system: CentOS PHP version: 5.2.0 PHP Bug Type: *Configuration Issues... -
Install pgsql directory
On Wednesday 08 Dec 2004 2:42 am, Jimmie H. Apsey wrote: This might help you.. http://wiki.ael.be/index.php/PostgresQL101 Shridhar ... -
Using virtual directories for common directories (scripts, images, styles, etc.)
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of... -
install 2 instance in same directory?
Can I install 2 SQL Server 2000 instances in same directory? -
Install via Microsoft Active Directory Policy
Help! I am trying to get DW MX installed on several desktops using Group Policies in Active Directory. I have a valid serial # for each user, but... -
Randy Edmunds #2
Re: Install Directory vs. User Directories
You are correct that your extension should never overwrite any existing
files. Extensions that do this will not get "Macromedia Approval".
There is simply no way to make changes to the existing Code COloring> /Configuration/CodeColoring/CodeColoring.xml
> /Configuration/CodeColoring/Colors.xml
> /Configuration/CodeColoring/Ruby.xml (my custom file for keywords and crap)
files. You need to put all of your changes in new .xml files as you did
with Ruby.xml. Place all of your coloring for Ruby in a file called
something like "RubyColors.xml".
DW processes all .xml file in the DocumentTypes folder, so you can also> And then I've also got changes to the Extensions.txt, FTPExtensionMap.txt and
> /Configuration/DocumentTypes/MMDocumentTypes.xml but all of those are
> documented in the MXI file as instructed (so I assume that goes ahead and
> appends those changes automatically, no need to include those files).
define your new documenttype(s) in a separate .xml file.
Hope this helps,
Randy
Randy Edmunds Guest
-
Cannikinn #3
Re: Install Directory vs. User Directories forExtensions
Hi Randy,
One issue remains ... I want HTML, JavaScript and CSS coloring to apply to my
new Ruby/Rails extensions (so that when I open an .rhtml file, all the regular
HTML will also be color coded along with the Rails code). The only way I've
found to do this is add my new doctypes to the HTML, Javascript and CSS
declarations in the CodeColoring.xml file:
How would I accomplish the same thing using only my Ruby.xml file? Do ICode:<scheme name="HTML" id="HTML" doctypes="ASP.NET_VB,ASP.NET_CSharp,ASP-JS,ASP-VB,ColdFusion,CFC,HTML,JSP,PHP_My SQL,LibraryItem,WML,XSLT,Ruby,Rails" priority="50">
re-declare the HTML line there and add on my new docytypes?
Cannikinn Guest
-
Randy Edmunds #4
Re: Install Directory vs. User Directories for Extensions
Yes, updating the CodeColoring.xml file is definitely the most efficient
way to go.
Here are some possible solutions that I see:
1. You could provide instructions for user to manually update
CodeColoring.xml.
2. Write a program that makes the edit. Since this needs to be done
while DW is shutdown, the user would still probably need to manually
invoke it.
3. Duplicate the HTML, CSS, and Javascript schemes in your .xml as you
suggest. You can re-use the ids so that when the color gets changed for
the original scheme, the duplicate schemes will also see the change.
Hope this helps,
Randy
> One issue remains ... I want HTML, JavaScript and CSS coloring to apply to my
> new Ruby/Rails extensions (so that when I open an .rhtml file, all the regular
> HTML will also be color coded along with the Rails code). The only way I've
> found to do this is add my new doctypes to the HTML, Javascript and CSS
> declarations in the CodeColoring.xml file:
>
>>Code:> <scheme name="HTML" id="HTML" > doctypes="ASP.NET_VB,ASP.NET_CSharp,ASP-JS,ASP-VB,ColdFusion,CFC,HTML,JSP,PHP_My > SQL,LibraryItem,WML,XSLT,Ruby,Rails" priority="50"> >
> How would I accomplish the same thing using only my Ruby.xml file? Do I
> re-declare the HTML line there and add on my new docytypes?
Randy Edmunds Guest
-
nesbert5 #5
Re: Install Directory vs. User Directories forExtensions
Just wondering how the reuby extension is going???
Nes
nesbert5 Guest
-
Cannikinn #6
Re: Install Directory vs. User Directories forExtensions
I've got a semi version 1.0 done! It adds the .rb and .rhtml extensions and
has code coloring for both. There are some strange behaviors ... some HTML
coloring is included in the .rhtml files, but some isn't. No idea why yet.
I'll send you a copy if you'd like!
Coming soon (hopefully) will a reference for both Ruby and Rails, as well as
Code Hints!
Cannikinn Guest
-
Cannikinn #7
Re: Install Directory vs. User Directories forExtensions
maxAndGusDad - I'd love to do some custom server behaviors for it, but I get
the feeling that's going to involve custom DLLs and such, which is beyond my
abilities at this point. For the immediate future I'd just be happy if it
color coded and code hinted for me. :)
Cannikinn Guest
-
nesbert5 #8
Re: Install Directory vs. User Directories forExtensions
I've edited my DW files by following a I found at rubygarden
([url]http://rubygarden.org/ruby/ruby?action=browse&diff=1&id=DreamweaverMX[/url]) **Note
to get proper HTML behavior in your .rhtml file make sure in Tag Library Editor
while HTML tags is highlighted in User In: you have Ruby checked.
Works pretty well... but no code hints =(.
I would love to see/test what you've doen so far... can't wait to use the
finished product.
nesbert5 Guest



Reply With Quote

