Hey Christopher,

2010/11/11 Christopher Covington <[email protected]>:
> I'm interested in creating a "verilog editor and waveform view in the
> cloud", if you will. I'm quite intrigued by Mozilla's Bespin and would

Great (I have been writing VHDL and attending DAC in a distant past !).

> like to embed it [1] for syntax highlighting, writing an extension for
> verilog in their existing infrastructure.
>
> 1. https://bespin.mozillalabs.com/docs/embedding/index.html
>
> Any recommendations on where to start? Right now it looks like the only
> meta tags in <head> that are accessible are "meta" and "http-equiv". I
> need "link" and "script", or perhaps to incorporate Bespin differently.

You can use WApplication::require() to load the script. Unfortunately,
we currently do not allow adding <link> tags (I've never seen them
being used like this). But pending an update in git that allows for
adding a <link> tag, you can work around this by moving bespin files
to whereever the editor is trying to fetch them (you can see the
requests from the builtin httpd that return 404).

At least for me the following worked :

    require("BespinEmbedded-0.9a2/prebuilt/BespinEmbedded.js");

    WText *bespin = new WText(root());
    bespin->setStyleClass("bespin");
    bespin->resize(400, 300);
    bespin->setInline(false);
    bespin->setText("Writing in the sky");

You probably want to ecnapsulate a bespin editor in a specialized
WText widget. This widget then calls the require() method. See for
example the WTextEdit implementation which instantiates the tinymce
editor.

Regards,
koen

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to