Thread Tools Display Modes
05-27-05, 07:37 PM   #1
Beladona
A Molten Giant
 
Beladona's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 539
Dreamweaver Code Colors

For those of you who use Dreamweaver for editing LUA and XML when creating your AddOns, I have decided to package something that I have been using for some time into an easy to install Dreamweaver Extension. The Extension provides syntax coloring for World of Warcraft LUA files.

Features -------------
- Color Coding for LUA code structure
- World of Warcraft API included as native functions (Global and Widget)
- New Functions are included as they have been announced for version 1.5.0 (still in testing on Test Server)

To Do ---------------
- Add Code Hints for LUA code, to help budding scripters get a handle on how things should be written
- Make code coloring work inside XML files.

Known Issues -----------
- Code Coloring is not available for LUA that is embedded in an XML file. I am experimenting with making this work, and should have this in the next version
- Comments that use the format --[[ comment ]]-- are not currently being color coded. The reason for this is that Dreamweaver uses CDATA entries for most of the code color definitions, and as such you cannot nest ]] inside of a <![CDATA[whatever]]> entry. Looking for ways to make this work, and welcome any suggestions

If you have questions, or find a bug, let me know. This has been something I have used for a couple months and as such is fairly bug free except for what I listed above. Be aware that this extension supports Dreamweaver MX+ (MX and MX2004) and only the windows platform...

Download is located at http://www.wowinterface.com/download...fo.php?id=3971 and I will support the plugin as well as announce updates in this thread...

Last edited by Beladona : 05-28-05 at 08:51 AM.
  Reply With Quote
05-30-05, 01:49 AM   #2
Beladona
A Molten Giant
 
Beladona's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 539
Dreamweaver extension that adds syntax coloring for lua code, within both lua and xml files. World of Warcraft Global and Widget API are both included as native functions, up to version 1.5.0 of the game client (soon to be released).

--------------------------------------------------------------
Known Issues / Coming Soon
--------------------------------------------------------------
* Code Hints will be added to help suggest code within your scripts
* comments that use the format --[[ comment ]]-- are not currently being colored with the comment block color. This is due to a shortcoming in the dreamweaver configuration files, which use CDATA elements to define such entries, and as such does not allow ]] as part of and entry.

--------------------------------------------------------------
Version History
--------------------------------------------------------------

* Version 1.1.0 - added support for lua within xml files
* Version 1.0.0 - initial release

-------------------------------------------------------------
You can find the updated version at http://www.wowinterface.com/download...fo.php?id=3971
  Reply With Quote
09-20-05, 10:42 PM   #3
Beladona
A Molten Giant
 
Beladona's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 539
Pending Release:

Dreamweaver Extension (supports Dreamweaver MX and higher)

This extension adds several new features that will aide in developing AddOns using the popular web design application, Dreamweaver. Features include syntax coloring for lua code within lua or xml files, and code hints for xml elements.

------------------------------------------------------------------------
Current Features
------------------------------------------------------------------------
* Adds LUA as a document type within Dreamweaver
* Adds Color Coding for LUA code. These apply to lua documents, and xml documents
* Adds an XML tag library for the WOW XML elements
* Adds code hints that draw from the XML Tag Library while editing WOW XML files

--------------------------------------------------------------
Known Issues / Coming Soon
--------------------------------------------------------------
* --[[ comment blocks ]] are now colored correctly
* --comments MUST be formatted as --<space>comment (example: -- this is a comment). Unfortunately Dreamweaver cannot tell the difference between -- and --[[ so the space is needed to make them appear different to the program. (otherwise --[[ comment blocks ]] would not work correctly)
* renamed the extension, which means it will attempt to install parallel to the previous extension. Please remove the previous extension before installing this one to make sure that all configuration changes remain intact and correct. The reason for the name change was to better reflect the purpose of the extension (no longer just code coloring) as well as prepare for additional plugins to be released soon (news coming soon)

--------------------------------------------------------------
Version History
--------------------------------------------------------------
* Version 1.4.0 (1700) - updated API to 1700, changed extension name
* Version 1.3.0 (1500) - added code hints and tag library for XML files
* Version 1.2.0 (1500) - fix (workaround) for the --[[ comments ]] not being colored
* Version 1.1.0 (1500) - added support for lua within xml files
* Version 1.0.0 (1500) - initial release

Last edited by Beladona : 09-21-05 at 09:41 AM.
  Reply With Quote
09-20-05, 10:58 PM   #4
Beladona
A Molten Giant
 
Beladona's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 539
Need to obtain some files from my laptop tomorrow, at which time I can compile the updated extension and upload it. Sorry for the delay, I should have it uploaded no later than 9am EST

Just to give you an diea of where I hope to take this extension:

Already added code coloring definitions for LUA code (WOW specific, not the full 5.0 LUA spec)

Added LUA as a supported document type within Dreamweaver

Added tag library for the XML DOM (WOW specific) complete with code hinting

* Ability to see context and property menu items for most elements. If it has configurable options, it should be visible in the properties pane when clicking in that element.

* Function List panel that dynamicaly displays all functions in a LUA script, and allows you to jump to that function with a single click within the list panel.

* EXPERIMENTAL * maybe add a LUA interpreter as an integrated external "validator" of your lua scripts.

* Add a Tag Library for the LUA scripting API with code hinting

* Add an API browser that shows you the functions, calls, and widgets available, even allowing you to drag and drop them into your code

------- Items with stars are things I plan or hope to implement soon. No guarantee that all of them will be possible, but my initial impression is that they should be
-- oh and the new dreamweaver 8 is nice ;D
  Reply With Quote
09-21-05, 08:22 AM   #5
Kaelten
Jack's raging bile duct
 
Kaelten's Avatar
Featured
Join Date: May 2005
Posts: 782
Hey Bela, what about auto-complete?

I currently use EditPlus and if I type

Code:
if
it changes it to

Code:
if ( ) then  

end
putting the curser between the two ( )

is this type of thing in there already and I over looked it or is it something that could be added to a future version?
__________________
WowAce.com & CurseForge.com Adminstrator
Developer of Ace3, OneBag3, and many other addons and libraries
Project lead and Mac developer for the Curse Client

Anyone that needs what they want
And doesn't want what they need
I want nothing to do with
  Reply With Quote
09-21-05, 09:39 AM   #6
Beladona
A Molten Giant
 
Beladona's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 539
that is called code hinting / code completion. It isn't in yet for LUA code, but will be soon. It IS however available for XML files:



Basically start entering stuff into an xml file, and it should suggest possible matches based on the tag library. Everything should be rpesent and accounted for in the XML library, from AbsDimension to WorldFrame...

I am working on a LUA tag library right now. It is harder to accomplish because tag libraries for programming languages are akin to creating an entire interpreter for Dreamweaver. My goal however is to have all of that in there. That way you can use Dreamweaver and it will do everything that editpad does, or other such script editors. (function browsers, autocompletion, etc...)

PS: fixed an error in my notes about the --[[ comment blocks ]]. I meant to say that they are NOW colored correctly, but instead I said NOT. Opps lol. They are actually colored correctly, and wrap to multiple lines correctly (until you type in the closing ]] braces of course). The side affect was that regular single line comments that begin with -- must have a space after it before the text, or else it wouldn't let me color code it.
Attached Thumbnails
Click image for larger version

Name:	dwlua_example.jpg
Views:	4835
Size:	43.1 KB
ID:	192  

Last edited by Beladona : 09-21-05 at 09:47 AM.
  Reply With Quote
02-10-07, 06:35 AM   #7
s_d_stoehr
A Defias Bandit
Join Date: Feb 2007
Posts: 2
I can't download the file:

3971 is not a valid ID
I downloaded the file a time ago and I liked it. How can I download the file

(I reinstalled my OS and now I need to download it once more)

thx for your help

s_d_stoehr
  Reply With Quote
02-17-07, 12:33 PM   #8
Beladona
A Molten Giant
 
Beladona's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 539
I removed it. I had not made any updates to it in about 3 patches, and had no immediate plans to do so. I will try to make something available, but for now I might recommend using one of the other ones like the pre-packaged Scite. This is what I use now, as Dreamweaver tends to be a little overkill at times.
  Reply With Quote

WoWInterface » Developer Discussions » Dev Tools » Dreamweaver Code Colors


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off