View Full Version : Code hints for Dreamweaver / CFstudio.
marcovth
10-15-2004, 10:47 AM
Hello ...
I have tried so many options in Dreamweaver and CFstudio5
that I am a bit lost to all the steps you have to take
to at least get the code hints working in CFstudio5.
I have tried all I can do with Dreamweaver, and adding
code hints doesn't seem to work unless you add them by hand :(
For CFstudio5:
1.) Copy the lzx directory into x:\Your-CFStudio5-directory\Extensions\TagDefs
2.) Paste the list from the "CFstudio-PasteInTo-tagcomp.dat.txt" file
into x:\Your-CFStudio5-directory\UserData\tagcomp.dat .
3.) (Restart CFstudio) Press F8 (settings), select validation, press the
Validator settings button, select the versions tab, select Add Version
Family, type in lzx (I selected xml, but I am not sure if it necessary).
4.) In the main settings window (F8), select Tag Definition Library, and move
lzx up in precedence (I placed it CFML & HTML).
5.) Restart CFstudio, and the code hints should work.
Hopefully someone figures it out for Dreamweaver.
- Marco.
antun
10-15-2004, 11:16 AM
This is awesome! HomeSite/ColdFusion Studio was always my favorite tool for editing HTML. There's just nothing else that comes close. A while back I looked into creating config files for HomeSite, but never got that far.
I'm really pleased to see this - thanks for posting.
-Antun
ecohen
10-19-2004, 11:57 AM
Thank You! This is a terrific step forward. BTW, the unzipper built into Windows XP will try to open the zip file but fail. Winzip opens with no problem.
BTW, its worth mentioning that you should also associate the file extention *.lzx for Homesite. The easiest way is to go:
1) Press f8, Choose File Settings > Extention Manager and then add in *.lzx as an editable file.
marcovth
10-19-2004, 01:31 PM
I also figured it out for Dreamweaver.
When you use windows, there are two directories
containing DW setup files:
c:\***WHATEVER***\Dreamweaver\Configuration\ ... etc.
and
C:\Documents and Settings\***WHATEVER***\Application Data\Macromedia\Dreamweaver MX 2004\Configuration
copy the lzx (tagdefs) directory to ...
C:\Documents and Settings\***WHATEVER***\Application Data\Macromedia\Dreamweaver MX 2004\Configuration\TagLibraries
Copy this in the TagLibraries.vtm file (located in the same directory).
<taglibrary name="lzx" doctypes="HTML,lzx" id="DWTagLibrary_lzx">
<tagref name="marco" file="lzx/marco.vtm"/>
<tagref name="DebugObject" file="lzx/DebugObject.vtm"/>
<tagref name="SyncTester" file="lzx/SyncTester.vtm"/>
<tagref name="Test" file="lzx/Test.vtm"/>
<tagref name="TestCase" file="lzx/TestCase.vtm"/>
<tagref name="TestResult" file="lzx/TestResult.vtm"/>
<tagref name="TestSuite" file="lzx/TestSuite.vtm"/>
<tagref name="_componentmanager" file="lzx/_componentmanager.vtm"/>
<tagref name="_datepicker_dirButton" file="lzx/_datepicker_dirButton.vtm"/>
<tagref name="_dbg_horiz_scrollbar" file="lzx/_dbg_horiz_scrollbar.vtm"/>
<tagref name="_dbg_lzhdrag" file="lzx/_dbg_lzhdrag.vtm"/>
<tagref name="_dbg_lztextscroller" file="lzx/_dbg_lztextscroller.vtm"/>
<tagref name="_dbg_lzvdrag" file="lzx/_dbg_lzvdrag.vtm"/>
<tagref name="_floatshadow" file="lzx/_floatshadow.vtm"/>
<tagref name="_internalinputtext" file="lzx/_internalinputtext.vtm"/>
<tagref name="a" file="lzx/a.vtm"/>
<tagref name="agent" file="lzx/agent.vtm"/>
<tagref name="alert" file="lzx/alert.vtm"/>
<tagref name="animator" file="lzx/animator.vtm"/>
<tagref name="animatorgroup" file="lzx/animatorgroup.vtm"/>
<tagref name="attribute" file="lzx/attribute.vtm"/>
<tagref name="audio" file="lzx/audio.vtm"/>
<tagref name="basebutton" file="lzx/basebutton.vtm"/>
<tagref name="basebuttonrepeater" file="lzx/basebuttonrepeater.vtm"/>
<tagref name="basecombobox" file="lzx/basecombobox.vtm"/>
<tagref name="basecomponent" file="lzx/basecomponent.vtm"/>
<tagref name="basedatepicker" file="lzx/basedatepicker.vtm"/>
<tagref name="basedatepickerday" file="lzx/basedatepickerday.vtm"/>
<tagref name="basedatepickerweek" file="lzx/basedatepickerweek.vtm"/>
<tagref name="basefocusview" file="lzx/basefocusview.vtm"/>
<tagref name="baseform" file="lzx/baseform.vtm"/>
<tagref name="baseformitem" file="lzx/baseformitem.vtm"/>
<tagref name="basegrid" file="lzx/basegrid.vtm"/>
<tagref name="basegridcolumn" file="lzx/basegridcolumn.vtm"/>
<tagref name="basegridrow" file="lzx/basegridrow.vtm"/>
<tagref name="baselist" file="lzx/baselist.vtm"/>
<tagref name="baselistitem" file="lzx/baselistitem.vtm"/>
<tagref name="basescrollarrow" file="lzx/basescrollarrow.vtm"/>
<tagref name="basescrollbar" file="lzx/basescrollbar.vtm"/>
<tagref name="basescrollthumb" file="lzx/basescrollthumb.vtm"/>
<tagref name="basescrolltrack" file="lzx/basescrolltrack.vtm"/>
<tagref name="baseslider" file="lzx/baseslider.vtm"/>
<tagref name="basesliderthumb" file="lzx/basesliderthumb.vtm"/>
<tagref name="baseslidertrack" file="lzx/baseslidertrack.vtm"/>
<tagref name="basetab" file="lzx/basetab.vtm"/>
<tagref name="basetabelement" file="lzx/basetabelement.vtm"/>
<tagref name="basetabpane" file="lzx/basetabpane.vtm"/>
<tagref name="basetabpanecontent" file="lzx/basetabpanecontent.vtm"/>
<tagref name="basetabs" file="lzx/basetabs.vtm"/>
<tagref name="basetabsbar" file="lzx/basetabsbar.vtm"/>
<tagref name="basetabscontent" file="lzx/basetabscontent.vtm"/>
<tagref name="basetabslider" file="lzx/basetabslider.vtm"/>
<tagref name="basetrackgroup" file="lzx/basetrackgroup.vtm"/>
<tagref name="basetree" file="lzx/basetree.vtm"/>
<tagref name="basevaluecomponent" file="lzx/basevaluecomponent.vtm"/>
<tagref name="basewindow" file="lzx/basewindow.vtm"/>
<tagref name="button" file="lzx/button.vtm"/>
<tagref name="canvas" file="lzx/canvas.vtm"/>
<tagref name="checkbox" file="lzx/checkbox.vtm"/>
<tagref name="class" file="lzx/class.vtm"/>
<tagref name="combobox" file="lzx/combobox.vtm"/>
<tagref name="command" file="lzx/command.vtm"/>
<tagref name="connection" file="lzx/connection.vtm"/>
<tagref name="connectiondatasource" file="lzx/connectiondatasource.vtm"/>
<tagref name="constantboundslayout" file="lzx/constantboundslayout.vtm"/>
<tagref name="constantlayout" file="lzx/constantlayout.vtm"/>
<tagref name="datalistselector" file="lzx/datalistselector.vtm"/>
<tagref name="datapath" file="lzx/datapath.vtm"/>
<tagref name="datapointer" file="lzx/datapointer.vtm"/>
<tagref name="dataselectionmanager" file="lzx/dataselectionmanager.vtm"/>
<tagref name="dataset" file="lzx/dataset.vtm"/>
<tagref name="datasource" file="lzx/datasource.vtm"/>
<tagref name="datepicker" file="lzx/datepicker.vtm"/>
<tagref name="datepickercombobox" file="lzx/datepickercombobox.vtm"/>
<tagref name="datepickerday" file="lzx/datepickerday.vtm"/>
<tagref name="datepickerlistitem" file="lzx/datepickerlistitem.vtm"/>
<tagref name="datepickerweek" file="lzx/datepickerweek.vtm"/>
<tagref name="debug" file="lzx/debug.vtm"/>
<tagref name="debugger_shadow_bottom" file="lzx/debugger_shadow_bottom.vtm"/>
<tagref name="debugger_shadow_right" file="lzx/debugger_shadow_right.vtm"/>
<tagref name="debugwindow" file="lzx/debugwindow.vtm"/>
<tagref name="dragstate" file="lzx/dragstate.vtm"/>
<tagref name="edittext" file="lzx/edittext.vtm"/>
<tagref name="face" file="lzx/face.vtm"/>
<tagref name="floatinglist" file="lzx/floatinglist.vtm"/>
<tagref name="focusoverlay" file="lzx/focusoverlay.vtm"/>
<tagref name="font" file="lzx/font.vtm"/>
<tagref name="form" file="lzx/form.vtm"/>
<tagref name="frame" file="lzx/frame.vtm"/>
<tagref name="grid" file="lzx/grid.vtm"/>
<tagref name="gridcolumn" file="lzx/gridcolumn.vtm"/>
<tagref name="gridtext" file="lzx/gridtext.vtm"/>
<tagref name="hscrollbar" file="lzx/hscrollbar.vtm"/>
<tagref name="include" file="lzx/include.vtm"/>
<tagref name="inputtext" file="lzx/inputtext.vtm"/>
<tagref name="javarpc" file="lzx/javarpc.vtm"/>
<tagref name="layout" file="lzx/layout.vtm"/>
<tagref name="library" file="lzx/library.vtm"/>
<tagref name="list" file="lzx/list.vtm"/>
<tagref name="listitem" file="lzx/listitem.vtm"/>
<tagref name="listselector" file="lzx/listselector.vtm"/>
<tagref name="menu*" file="lzx/menu.vtm"/>
<tagref name="menuarrow*" file="lzx/menuarrow.vtm"/>
<tagref name="menubar*" file="lzx/menubar.vtm"/>
<tagref name="menubutton*" file="lzx/menubutton.vtm"/>
<tagref name="menufloatinglist*" file="lzx/menufloatinglist.vtm"/>
<tagref name="menuitem*" file="lzx/menuitem.vtm"/>
<tagref name="menuseparator*" file="lzx/menuseparator.vtm"/>
<tagref name="method" file="lzx/method.vtm"/>
<tagref name="modaldialog" file="lzx/modaldialog.vtm"/>
<tagref name="multistatebutton" file="lzx/multistatebutton.vtm"/>
<tagref name="node" file="lzx/node.vtm"/>
<tagref name="param" file="lzx/param.vtm"/>
<tagref name="preloadresource" file="lzx/preloadresource.vtm"/>
<tagref name="radiobutton" file="lzx/radiobutton.vtm"/>
<tagref name="radiogroup" file="lzx/radiogroup.vtm"/>
<tagref name="remotecall" file="lzx/remotecall.vtm"/>
<tagref name="resizelayout" file="lzx/resizelayout.vtm"/>
<tagref name="resizestate" file="lzx/resizestate.vtm"/>
<tagref name="resizestatemin" file="lzx/resizestatemin.vtm"/>
<tagref name="resizeview_x" file="lzx/resizeview_x.vtm"/>
<tagref name="resizeview_y" file="lzx/resizeview_y.vtm"/>
<tagref name="resource" file="lzx/resource.vtm"/>
<tagref name="reverselayout" file="lzx/reverselayout.vtm"/>
<tagref name="rpc" file="lzx/rpc.vtm"/>
<tagref name="script" file="lzx/script.vtm"/>
<tagref name="scrollbar" file="lzx/scrollbar.vtm"/>
<tagref name="selectionmanager" file="lzx/selectionmanager.vtm"/>
<tagref name="sessionrpc" file="lzx/sessionrpc.vtm"/>
<tagref name="simpleboundslayout" file="lzx/simpleboundslayout.vtm"/>
<tagref name="simpleinputtext" file="lzx/simpleinputtext.vtm"/>
<tagref name="simplelayout" file="lzx/simplelayout.vtm"/>
<tagref name="slider" file="lzx/slider.vtm"/>
<tagref name="sliderthumb" file="lzx/sliderthumb.vtm"/>
<tagref name="slidertrack" file="lzx/slidertrack.vtm"/>
<tagref name="soap" file="lzx/soap.vtm"/>
<tagref name="splash" file="lzx/splash.vtm"/>
<tagref name="stableborderlayout" file="lzx/stableborderlayout.vtm"/>
<tagref name="state" file="lzx/state.vtm"/>
<tagref name="statictext" file="lzx/statictext.vtm"/>
<tagref name="style" file="lzx/style.vtm"/>
<tagref name="submit" file="lzx/submit.vtm"/>
<tagref name="swatchview" file="lzx/swatchview.vtm"/>
<tagref name="tab" file="lzx/tab.vtm"/>
<tagref name="tabelement" file="lzx/tabelement.vtm"/>
<tagref name="tabpane" file="lzx/tabpane.vtm"/>
<tagref name="tabs" file="lzx/tabs.vtm"/>
<tagref name="tabsbar" file="lzx/tabsbar.vtm"/>
<tagref name="tabscontent" file="lzx/tabscontent.vtm"/>
<tagref name="tabslider" file="lzx/tabslider.vtm"/>
<tagref name="text" file="lzx/text.vtm"/>
<tagref name="textlistitem" file="lzx/textlistitem.vtm"/>
<tagref name="tree" file="lzx/tree.vtm"/>
<tagref name="treeselector" file="lzx/treeselector.vtm"/>
<tagref name="view" file="lzx/view.vtm"/>
<tagref name="vscrollbar" file="lzx/vscrollbar.vtm"/>
<tagref name="webapprpc" file="lzx/webapprpc.vtm"/>
<tagref name="window" file="lzx/window.vtm"/>
<tagref name="windowpanel" file="lzx/windowpanel.vtm"/>
<tagref name="wrappinglayout" file="lzx/wrappinglayout.vtm"/>
<tagref name="xmlrpc" file="lzx/xmlrpc.vtm"/>
</taglibrary>
Note that I placed a * behind all the lzx tags
starting with Menu. These tags seem to conflict
with the internal DW Menu tags.
If your menus disappear in DW, take out the lzx
Menu tags from this list !
Hope it works for you.
- Marco.
I don't have a C:\Documents and Settings\***WHATEVER***\Application Data\Macromedia\Dreamweaver MX 2004\Configuration\TagLibraries
There is no TagLibraries folder anywhere in the C:\Documents and Settings subfolders
I do have a C:\Documents and Settings\%username%\Application Data\Macromedia\Dreamweaver MX 2004\Configuration folder but no TagLibraries subfolder
I do have a C:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\TagLibraries folder.
I copied the lzx folder to that folder then addeded those lines to C:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\TagLibraries\TagLibraries.vtm
I started Dreamweaver 2004 and don't have code hinting on .lzx files. It treats them like a plain text file with no color coding nor hinting. What am I missing?
I had to add the .lzx extention in the Edit/Preferences/(File Types/Editors) for it to even open in DW.
Also, should there be an LXZ (or similar) option when clicking on File then New like there is for other file types?
thanks
marcovth
10-20-2004, 05:31 AM
It seems that in order to get the TagLibraries directory in ...
C:\Documents and Settings\***WHATEVER***\Application Data\Macromedia\Dreamweaver MX 2004\Configuration\
you first have to play with the taglibraries in DW.
In DW goto Edit --> TagLibraries, and add a new (fake)taglibrary.
Inside the fake library, add a new tag.
Press OK to close the TagLibraries window, and the
TagLibraries directory should show up in
C:\Documents and Settings\***WHATEVER***\Application Data\Macromedia\Dreamweaver MX 2004\Configuration\
- Copy the lzx (VTM) directory to the TagLibraries dir.
- Edit the TagLibraries.vtm file from the same dir.
Make sure that where ever you pasted the lzx-taglibrary
list, all the lzx MENU tags are either removed or renamed with a * at the end of the name, otherwise
the menu's in DW get messed up.
Now, I found another step you have to do:
Copy the DocumentTypes directory from
c:\***WHATEVER***\Dreamweaver\Configuration\ to
C:\Documents and Settings\***WHATEVER***\Application Data\Macromedia\Dreamweaver MX 2004\Configuration\
and edit file \DocumentTypes\MMDocumentTypes.xml:
In the first document type, add lzx to the
winfileextension & macfileextension:
<documenttype id="HTML" internaltype="HTML" winfileextension="htm,html,shtml,shtm,stm,tpl,lasso,xhtml,lzx" macfileextension="htm,html,shtml,shtm,tpl,lasso,xhtml,lzx" file="Default.html" writebyteordermark="false">
DW now thinks that a lzx file is a html file.
- (Restart DW) Go back to the TagLibraries window in DW
and make sure the lzx library is linked to HTML files.
I don't know why MM makes it so difficult to add tag
libraries to DW?
If it works, please let it know here.
If you have a clean install, please publish the steps
you took, because I tried a lot of options, and
perhaps you have to change some other options
that I forgot about.
The good news is that it should work (except for the menu tags :)
- Marco.
chrislyman
10-20-2004, 08:35 AM
Try this out:
In C:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\Strings\documenttypes.xml add this at the bottom:
<string id="mmdocumenttypes_AA" value="Laszlo" />
<string id="mmdocumenttypes_BB" value="<![CDATA[Laszlo Presentation Server]]>" />
You'll see a bunch of strings with ids in the format mmdocumenttypes_nn, where nn is a number. Find the highest number and add one, that's the number for AA. Add one more and that's BB.
Now, go to C:\Documents and Settings\*USERNAME*\Application Data\Macromedia\Dreamweaver MX 2004\Configuration\DocumentTypes and add the following tuple:
<documenttype id="Laszlo" internaltype="xml" winfileextension="lzx" macfileextension="lzx" file="Default.lzx" writebyteordermark="false">
<TITLE>
<MMString:loadString id="mmdocumenttypes_AA" />
</TITLE>
<description>
<MMString:loadString id="mmdocumenttypes_BB" />
</description>
</documenttype>
Where AA and BB are the numbers you used above.
At least for me, that made Laszlo its own document type. Now on to tackle color coding...
Best,
Chris
chrislyman
10-20-2004, 09:07 AM
If you create a Laszlo document type, you can also specify a default document that DW will use as a temple everytime you create a new file. Put whatever you want in C:\Documents and Settings\**USERNAME**\Application Data\Macromedia\Dreamweaver MX 2004\Configuration\DocumentTypes\NewDocuments
and call it Default.lzx.
Code hinting is working now that I did what Marco said to get TagLibraries in the right place then adding lzx as an html extention so DW thinks it is an html file.
I tried your suggestion Cris and it doesn't quite work. When I first added those lines to MMDocumentTypes.xml while I still had lzx as an html extention an error came up on DW startup stating that:
"The Document Type "" will not be added because it uses a file extension that is already associated with a prior Document Type."
I removed lzx as an html extension then started again and when I opened a .lzx file it came up with no color coding and no code hinting as before.
I clicked on File/New and there was a blank new document type with no name or description. I double clicked on that and a new document was created as I had setup in my Default.lzx but it still had no color coding nor code hinting.
I went back and put lzx as an html extension and removed it from the Laslo document type and color coding and code hinting work fine.
It would be nice to have Laszlo as it's own document type to create default documents and still have color coding and code hinting. There still must be something missing...
thanks
chrislyman
10-20-2004, 10:31 AM
Yeah...we must be missing something... It would be nice to have a clean Laszlo document type, but I'll take what I have for the time being. Maybe somebody else can take up the cause... :)
Chris
I'm very happy to have code hinting in DW :) That was my number one feature to have.
The color coding isn't perfect since it's based on HTML color coding but it's pretty good, especially for the JavaScript.
Since the spring I've been using Eclipse with the lzx schema that color coded and added a few lzx features but it was buggy and didn't have code hints. I had been using DW for everything else but it was a pain jumping back and forth for a db app, doing the presentation in Eclipse & CFML, etc. in DW. Some things need to be worked out and a lot of new features will be added but now DW is the best Laszlo editor (Homesite/CF Studio a close second)... :)
franktanika
08-18-2005, 04:23 AM
It works!!!!
Wonderful!
(the only strange thing is that DW cannot recognize canvas and datasets tags... but that's not a problem!)
Thank you very much, Marco.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.