Python Forum

Full Version: syntax highlighting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
Quote:if we could people to do that if they post long code?
That is definitely an approach that works. I would like to at some point get a hieght restriction. But at this point im just happy with the fact that the syntax highlighter works at all.
A simple hack that might work easily is to wrap the python code tags in spoiler tags if the text within is X characters long, and or X number of newlines, etc.

But im not going to bother at this point.
Quote: But at this point im just happy with the fact that the syntax highlighter works at all.

Yes only minor stuff to fix now,and is very rare that someone post so long code as Skaperen  fixed both post now with spoiler tag.
Shall look into removing vertical and horizontal scroll bars.
Removed vertical scrollbar.
Horizontal scrollbar only appears if someone goes crazy with line lenght :tux:
(Oct-04-2016, 06:04 PM)snippsat Wrote: [ -> ]Removed vertical scrollbar.
Horizontal scrollbar only appears if someone goes crazy with line lenght :tux:

Sweet  :dance:
When figured out, please fix my last post under homework titled
List Censor Thread

Thanks
shcode tag is no longer valid
use python code tags

Also what IDE were you copying from? You didnt have plain text within code tags
Got it, thanks for the fix!
Pages: 1 2 3 4 5 6