Download
(1 Kb)
Download
Updated: 09/02/17 03:09 AM
Pictures
File Info
Compatibility:
Horns of the Reach (3.1)
Updated:09/02/17 03:09 AM
Created:08/30/17 02:04 PM
Monthly downloads:23
Total downloads:1,753
Favorites:1
MD5:
Autotag
Version: 3.11
by: Solvaring [More]
Hey all,

Finished writing another tool for Zerobrane Studio to make addon development smoother and easier.

This plugin is meant to be used when writing XML for gui development. This plugin will automatically insert a closing tag to complement the last opened element.

Autotag3.lua is the latest version. Just drop it into the packages directory of your Zerobrane Studio installation.

https://github.com/Solvaring/ZerobraneXmlTagCompletion




9/1/2017
Update to version 3.1, all bugs seemingly squashed, very proud of myself and the lua pattern magic i worked in this plugin. Please communicate any bugs you may encounter through your use of this plugin to me so I can fix them. As of now from my testing everything seems to be working wonderfully. The double chevron behavior of inserting a closing tag for a tag already found in the document now works as it should. If for instance you want to insert an nth <TopLevelControl> tag, typing <TopLevelControl>> will turn into <TopLevelControl></TopLevelControl>. I just realized this presents a dilemma for anyone dealing in bitwise operations particularly for the bitwise right shift >>. I may in future versions change the condition to look for three consecutive chevrons/greater than symbols. I believe i put the double chevron behavior in in the first place so that typing out an expression like 2 > 1 doesn't trigger the autoinsertion of an xml tag.

At any rate, it's working very well now and I am pleased with it. I look forward to feedback. Happy coding!


8/31/2017
Update to version 3.1, I encountered bugs where tags were not closing correctly. This fix should alleviate some of that.

Accidentally created more bugs, fall back to the original version 3 while i sort this out. Sorry guys!

I managed to get it fixed up, there is one limitation.

Trying to add a second element of the same name that includes attributes such as <TopLevelControl name="name>
Where there is already a <TopLevelControl> present in the file, the inclusion of the attribute will disable the autocomplete for that particular element name. The double chevron method of placing a duplicate does not function as intended. I'll try to sort this out in the coming days
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Uploader
Date
3.1
1kB
Solvaring
09/01/17 09:52 PM
3.1
1kB
Solvaring
09/01/17 03:56 AM
3
1kB
08/30/17 02:04 PM


Post A Reply Comment Options
Unread 09/20/17, 01:34 AM  
Solvaring
 
Solvaring's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 3
Uploads: 2
test

test
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.