# How do we get syntax highlighted python in this stack exchange?

maybe im missing something.. but this should show some colours at the very least. (insert some generic python here)

for i in range(40):
print("something")


I understand that the syntax highlighting isn't a big deal for some people, but having to run a plugin in my browser to highlight code on sites doesn't sit well with me. If we can have these kbd tags, there is no acceptable reason to not have decent basic syntax highlighting. (unless that would require the parser to import bpy.. )

I got the email from iKlsR regarding this request.

I have now enabled highlighting of code section by default - using the default of python.

From the few posts I have looked at that do have python, it looks good. Let me know if there are any issues with this.

• cool, thank you! – zeffii May 28 '13 at 10:38

It should work, by adding <!-- language: lang-py --> at the top but oddly it doesn't seem to work here..

def __init__(self):
pass

• OK, if the beta grows this has a chance of happening? :) – zeffii May 24 '13 at 20:59
• @zeffii see my comment on the question, based upon what I have learnt, it is enabled upon request, so quite possibly yes. – iKlsR May 24 '13 at 21:01
• then whose door do we knock on for this? – zeffii May 24 '13 at 21:04
• @zeffii I am thinking of emailing one of the SE mods or waiting till they see this. – iKlsR May 24 '13 at 21:04