Python Forum

Full Version: Syntax highlighted code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I assume it's me doing something wrong, but anyway:
if I try to insert shcode (using 'Insert a shcode' buton) it is not syntax highlighted or even preformated as code:
[shcode=python]
def foo():
    pass
[/shcode]




No problem to insert syntax highlighted python code with the 'Python' code button:

def foo():
    pass
shcode code tag is a plugin that we added. However there were problems with that plugin escaping incorrect characters.

Python code box is actually PHP button reskin. But we are still working on it.
I see... Thanks, metulburr