I'm thinking of writing a MUclient plugin editor (don't get excited, it's just a thought), and I was wondering if anyone knew of an XML parser I could use in VB to read the plugin structure.
Plugin editor
Posted by Poromenos on Fri 25 Jun 2004 12:21 PM — 13 posts, 39,857 views.
I have found a parser but you lose all your XML formatting when you save as XML... Would that bother you in a plugin editor?
It would bug me in any editor. Though it depends on how much it mangles the formatting. If it does it to the code, then definitely. It is hard enough sometimes to figure out what parts of a complex block of code belong to each other. If you intentionally indent it to make it easier, then something else comes along and eats that... Same thing if it uses tabs to format, those are 'never' consistent from one editor to the next and even when they are, god forbid you need to open it in an emergency in something like MS notepad.
Point is, reformatting the result in a sane way I could live with, but if it mangles that formating completely...
Point is, reformatting the result in a sane way I could live with, but if it mangles that formating completely...
Only the XML is reformatted, the code remains as is.
Would anyone be interested in helping me develop it? It's in VB... Or if you could write documentation, design a site or whatever?
Id be interested. You going to do it via sourceforge? or just work on it and email changes etc.
Either way, yeah, Im interested.
Might be easier to just write a routine yourself.
I assume you read the other thread about this.
Either way, yeah, Im interested.
Might be easier to just write a routine yourself.
I assume you read the other thread about this.
Yes, I have posted it on SourceForge and i'm waiting approval, the Unix name is MUEdit, if it passes I'll upload the current files to the CVS. Sign up to the project if you want to help. I have (sort of) read the other thread, and I figure I'll address those problems as they come up :)
By the way, Notepad++ can correctly highlight vbscript in XML files AND is aware of the XML structure (though it can't highlight XML and VB simultaneously) and can expand/contract the nodes. Pretty nice editor for plugins (until we write MUEdit, anyway :p)
Yeah. Scite correctly hilights both as well, but also not at the same time. It would have been nice if they had provided hilighting of both, then just colored code different or something. :( This is imho the flaw in all editors, they only account for one language at a time, even when it is likely that they will be mixed.
Oh.. One thing that occured to me that would be nice, if the plugin editor could scan the XML and scripting code to determine which 'version' the plugin will run in. Currently, the plugin wizard assumes that you can only run it in the 'current' version of Mushclient and trying to figure out when some option of feature was actually added, so you can set the version to be compatible with older copies is annoying.
Oh.. One thing that occured to me that would be nice, if the plugin editor could scan the XML and scripting code to determine which 'version' the plugin will run in. Currently, the plugin wizard assumes that you can only run it in the 'current' version of Mushclient and trying to figure out when some option of feature was actually added, so you can set the version to be compatible with older copies is annoying.
I'll add it on the TODO list :) Care to help out with development?
Ironically.. I have a mess of family over right now for the summer, so haven't the time I normally would to work on anything. :( But being in VB, if I come up with an idea, I can always make a quite proof of concept to show how it might work. Actual indepth programming of any of it though...
Grrr, competition! Wanna race? :p
I'm waiting for the sourceforge project to be accepted, I'll post here when it does so we can begin development.