Re: javascript+protovis syntax coloring

2011-01-12 Thread Lorin Rivers
I discovered it's possible to use protovis without the crazy markup and I don't 
know why they do it that way, the convenience methods it allows don't seem that 
special.

Thanks!
On Dec 29, 2010, at 13:06 , Lorin Rivers 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
 
 
 protovis extends javascript but for the most part it's just plain javascript.
 
 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?
 -- 
 Lorin Rivers
 Mosasaur: Killer Technical Marketing http://www.mosasaur.com
 mailto:lriv...@mosasaur.com
 512/203.3198 (m)
 
 

-- 
Lorin Rivers
Mosasaur: Killer Technical Marketing http://www.mosasaur.com
mailto:lriv...@mosasaur.com
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 bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
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 supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: javascript+protovis syntax coloring

2011-01-03 Thread Lorin Rivers

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

 On Wednesday, December 29, 2010, Lorin Rivers lriv...@mosasaur.com 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:lriv...@mosasaur.com
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 bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
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 supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


javascript+protovis syntax coloring

2010-12-29 Thread Lorin Rivers
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


protovis extends javascript but for the most part it's just plain javascript.

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?
-- 
Lorin Rivers
Mosasaur: Killer Technical Marketing http://www.mosasaur.com
mailto:lriv...@mosasaur.com
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 bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
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 supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: javascript+protovis syntax coloring

2010-12-29 Thread Rich Siegel
On Wednesday, December 29, 2010, Lorin Rivers 
lriv...@mosasaur.com 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?



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.


R.
--
Rich Siegel Bare Bones Software, Inc.
sie...@barebones.com  http://www.barebones.com/

Someday I'll look back on all this and laugh... until they 
sedate me.


--
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 bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
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 supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit