William McVey wrote:
> I'd like to have a menu item that will popup an 'About' dialog
> describing that particular config. Ideally, I'd like this to be
> formatted across multiple lines. I tried using embedded \n and \r
> sequences within an 'alert' command with no luck (the \n showed up in
> the alert). I also tried embedded newlines within the parameter
> attribute of the item, but the embedded newline got translated into a
> simple space. Is it possible to create a multi-line alert? If not, could
> this be added as an enhancement in a later release?

Use "
" instead of "\n".
---
<command name="alert" parameter="foo&#xA;bar&#xA;gee" />
---



> Secondly, I'd like to have a Menu item for my configuration that will
> open up a user's default system browser to a URL. This would have
> practical applications in taking a user to detailed documentation, a bug
> ticket application, or other web based resources.

Define a menu for your configuration 
(http://www.xmlmind.com/xmleditor/_distrib/docs/configure/ch06s15.html) 
with a menu item invoking a command  or macro-command containing 
something like:
---
<command name="run"
   parameter='start "" http://www.xmlmind.com/xmleditor/' />
---

On the Mac, use the "open" facility (may be with "start" instead of 
"run" -- I've not tested it.)
On Linux, use "mozilla -remote openURL(...)" (may be with "start" 
instead of "run" -- I've not tested it.)

See http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s47.html
See http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s62.html


Reply via email to