On Dec 29, 2010, at 18:30 , Rich Siegel wrote:

> On Wednesday, December 29, 2010, Lorin Rivers <[email protected]> wrote:
> 
>> I'm working with Protovis <http://vis.stanford.edu/protovis/>, which is a 
>> javascript-based graphics library.
>> 
>> The syntax for a protovis block adds "+protovis" to the end of the 
>> declaration in the html document, like so:
>> <script type="text/javascript+protovis">
> 
> Is that really necessary? If Protovis is just a library, then the code is 
> just JavaScript and "text/javascript" should work just fine, right?

Apparently so, that's how it gets loaded.

>> What can I do to make BBEdit treat this as if it is javascript, or
>> even better, extend the existing JS language module to support
>> protovis?
> 
> You can generate a tags file for Protovis symbols and put it in 
> ~/Library/Application Support/BBEdit/Completion Data/JavaScript/ and the 
> Protovis symbols will be recognized and eligible for coloring and completion.

OK, I got the tags bit working, but since BBEdit isn't recognizing the protovis 
chunks as javascript, it's still not quite there.

Is there a way to convince BBEdit that it really IS javascript, even though 
it's breaking some rules?

-- 
Lorin Rivers
Mosasaur: Killer Technical Marketing <http://www.mosasaur.com>
<mailto:[email protected]>
512/203.3198 (m)


-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to