We are testing new code box. This python tag is syntaxhighlighter Version 4.x. which works with a number of langauges.
We converted all original code tags, php tags, etc. to this new python tag. Let us know if you see any problems.
Current Issues with Syntax Highlighter Codebox:
We converted all original code tags, php tags, etc. to this new python tag. Let us know if you see any problems.
Current Issues with Syntax Highlighter Codebox:
- No select all option (you can double click the code to select all)
- no restriction on length down (For right now you can surround your python code tags with spoiler tags to shorten the code to a link to expand as needed)
- copy and paste not working correctly (You must paste code as plain text for this codebox to work right CTRL + SHIFT + V or right click "paste as plain text")
- Sometimes copying from HTML to codebox can add extra things (such as newlines, or switch a link to an <a> tag within the code box (images/links in the code box can break it and post the html instead)
- hide underscores from within the code box, if it is at the bottom of the box, or a single line (this is only some browsers, and only on the bottom line of the code box)
import os class Klass: '''docstring''' def __init__(self): self.var = "var" pass
Recommended Tutorials: