Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
syntax highlighting
#41
Disabling the code tags and php tags, have completely removed them from all current posts on the forum. I wonder if there is a way to hide the buttons from scheditor as opposed to disabling them as to not ruin current posts?
Recommended Tutorials:
Reply
#42
I have an idea to recreate the original tags to use, but to not put them in the sceditor. That should in theory fix the broken codeboxes, but not show up on the sceditor.
Recommended Tutorials:
Reply
#43
ok to keep a changelog in case we need to revert: (i have a horrible memory)

I disabled code and php code tags form ACP -> Clickable SMilies and BBCode -> Disable Code and Php tags

Then recreate new MyCode tags with the same BBCode pointing to pre html tags for python.
Recommended Tutorials:
Reply
#44
There are a couple of things i see that are minor while looking around the forum.

1) We should add a restriction to length so if someone posts a long piece of code, then we all are not scrolling to the bottom, etc.
2) There is no select all in code box
3) (more major) and of course the original problem of copy and paste to advanced editor causes every word to be in code tags....but not the quick editor.
Recommended Tutorials:
Reply
#45
Quote:1) We should add a restriction to length so if someone posts a long piece of code, then we all are not scrolling to the bottom, etc.

Hmm not quite sure what you mean.
Skaperen has post a long code here looks okay to me.

Quote:2) There is no select all in code box
Looks okay.

Quote:3) (more major) and of course the original problem of copy and paste to advanced editor causes every word to be in code tags....but not the quick editor.
A little annoying some time,this batter me very little so it's okay.
Reply
#46
Quote:Hmm not quite sure what you mean.

Skaperen has post a long code here looks okay to me
Thats a perfect example of what i mean. There is no restriction. The old codebox restricted the height to somewhere around 100 pixels high or so, and you scroll to see the rest. This one expands to as high as the code needs. For example what if someone posted 1000+ script in them? We would have to scroll the entire thing.

----------------------------------

There is also another issue i realized....with stupid smilies. It tries to insert the smilies into the codebox. Which then syntaxhighlighter i guess doesnt know what to do for an image, and does this

dict = {
    "a":(100,100),
    "b":(100,100),
}
but everything tries to add that i guess
Output:
dict = {     "a":(100,100),     "b":(100,100), }
from
    "a":(100,100),
    "b":(100,100),

the only way to fix it is to add a space between : and (
dict = {
    "a": (100,100),
    "b": (100,100),
}
or a more radical approach, disable smilies?

EDIT:
 oh wait we can change the smilies code
Recommended Tutorials:
Reply
#47
ok nevermind that last part....
I changed the smilie code to : ( ( instead of : (
WE might have to do that again, if we see more smilies i nthe code
Recommended Tutorials:
Reply
#48
Quote:Thats a perfect example of what i mean. There is no restriction.
Yes,now i understand.
Just trowing out some idea maybe a simple rule for long code(split it up) to use spoiler tag.
Not sure if we could make some restriction.
I am thinking of remove scrollbar because it look not so good.
Reply
#49
Quote:I am thinking of remove scrollbar because it look not so good.
Without the ability to restrict the length im not sure why its even there. I agree for now until we possibly get a restriction limit.
Recommended Tutorials:
Reply
#50
Take a look at post Skaperen,i put both post in spoiler tag.
Now it's quite okay,if we could people to do that if they post long code?
Or do it for them,it's not so often someone post so long code.
Remove scroll that not working,
and have then just use scrollbar browser to navigate in spoiler.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Undo (Ctrl+z) doesn't work on highlighting CynthiaMoore 8 8,398 Apr-25-2020, 05:00 AM
Last Post: buran
  feature request: highlighting Skaperen 9 6,518 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