There are two ways to highlight code.
1) server side
{{=CODE("""print T("hello world")""",language="web2py")
You can use it in readonly forms
db.mytable.myfield.represent=lambda value: CODE(value,language="html")
assuming myfield contains html.
2) client side (you need this to highlight code in input fields). You
need to use javascript. You look into this http://cdolivet.net/editarea/
On Feb 10, 5:27 pm, Jurgis Pralgauskis <[email protected]>
wrote:
> Hello,
>
> I figured out how to highlight the code, which I already have
> but how to have input box with html highlighting for python?
>
> Thanks in advance
>
> --
> Jurgis Pralgauskis
> Don't worry, be happy and make things better ;)http://sagemath.visiems.lt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---