-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 08.01.2010 09:24, schrieb Thulasi Ram P:
> Hi all,
>            There is a tag called 'code-block' supported by sphinx. Now
> I have to write an extension to sphinx which captures the event of
> double-clicking the block and make the code block editable ( or run a
> java-script). Any help regarding this?

This sounds like a task that will be completely implementable in JavaScript.
- From the Sphinx side, all you need to do is to add your custom JavaScript
code to the output, using:

def setup(app):
    app.add_javascript('mycode.js')

in either conf.py or your custom extension, and putting mycode.js in the
_static directory.

cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAktMSksACgkQN9GcIYhpnLBFXgCfWq9x+GSr/0igjSGykgZ7zGvh
mV4AniXgi+7Fnm+GpZiUKdRXdPiisd7B
=3AwN
-----END PGP SIGNATURE-----
-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
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/sphinx-dev?hl=en.


Reply via email to