On 09/04/10 10:36, Henrik Huttunen wrote: > For the lulz I created a simple jQuery interface for Factor-javascript > interpreter.
Instead of using text/html as the type attribute of the script element why not use something like application/x-factor or someother factor-ish tag? You can then select based on this rather than the class. As an example I do this with with my toy xy interpreter in JavaScript: http://www.bluishcoder.co.nz/xyjs/xy.html If you view the source of that page you'll see code like: <script type="text/x-xy"> ; pop { a } ; ; drop pop ; ; dip swap => / <= ; ; dup { a \a \a } ; ; swap { [a b] \b \a } ; ; jump { [a b] \a \b \a } ; </script> On page load I search for this blocks in: http://www.bluishcoder.co.nz/xyjs/xyinline.js Chris. -- http://www.bluishcoder.co.nz ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk