Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
syntax highlighting
#51
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.
Recommended Tutorials:
Reply
#52
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.
Recommended Tutorials:
Reply
#53
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.
Reply
#54
Removed vertical scrollbar.
Horizontal scrollbar only appears if someone goes crazy with line lenght :tux:
Reply
#55
(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:
Recommended Tutorials:
Reply
#56
When figured out, please fix my last post under homework titled
List Censor Thread

Thanks
Reply
#57
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
Recommended Tutorials:
Reply
#58
Got it, thanks for the fix!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Undo (Ctrl+z) doesn't work on highlighting CynthiaMoore 8 8,293 Apr-25-2020, 05:00 AM
Last Post: buran
  feature request: highlighting Skaperen 9 6,416 Jan-26-2017, 04:13 PM
Last Post: Kebap

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020