Python Forum
Poll: Bring back the original codebox?
You do not have permission to vote in this poll.
Bring back the original codebox and let users choose whether they want default codebox (simpler) or use the syntax highlighted codebox
20.00%
1 20.00%
Keep only the syntax highlighted code box
60.00%
3 60.00%
Keep only the default original codebox
20.00%
1 20.00%
Total 5 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
More codebox issues
#9
Quote:Also it seems impossible to paste code from a code box in another post into a new thread without getting unwanted formatting.
No,there a solution that solve it all,this from copy from other codebox or copy code from web.
First i have not had any problem copy from new syntaxHighlighter codebox to other thread.
You know that you can double-click on code to selcet all,then copy and add new code box.
This is my copy from other code box in post,no clean up.
def foo(bar):
   print("Hello")
Just copy from old forum and paste.
[color=#2e8b57][size=x-small][font=Monaco,]class File:[/font][/size][/color]
[color=#2e8b57][size=x-small][font=Monaco,]  def __init__(self, name):[/font][/size][/color]
[color=#2e8b57][size=x-small][font=Monaco,]    self.name = name[/font][/size][/color]

[color=#2e8b57][size=x-small][font=Monaco,]class Folder(File):[/font][/size][/color]
[color=#2e8b57][size=x-small][font=Monaco,]  def __init__(self, name):[/font][/size][/color]
[color=#2e8b57][size=x-small][font=Monaco,]    super().__init__(name)[/font][/size][/color]
[color=#2e8b57][size=x-small][font=Monaco,]    self.children = [][/font][/size][/color]
Now with the magic button push in view source(ctrl+shif+s)
This is the exact same paste with 1 difference this example is view source(ctrl+shif+s) push in.
class File:
 def __init__(self, name):
   self.name = name

class Folder(File):
 def __init__(self, name):
   super().__init__(name)
   self.children = []
There also a Remove formatting button this work when not view source(ctrl+shif+s) is push in.
It would have removed all formatting so it look like second example.

I gone write some more about this stuff,because this can be hard to figure out :s!
Reply


Messages In This Thread
More codebox issues - by Mekire - Oct-12-2016, 04:05 AM
RE: More codebox issues - by metulburr - Oct-12-2016, 04:32 AM
RE: More codebox issues - by Mekire - Oct-12-2016, 04:36 AM
RE: More codebox issues - by metulburr - Oct-12-2016, 04:38 AM
RE: More codebox issues - by metulburr - Oct-12-2016, 04:39 AM
RE: More codebox issues - by wavic - Oct-12-2016, 08:20 AM
RE: More codebox issues - by metulburr - Oct-12-2016, 11:31 AM
RE: More codebox issues - by wavic - Oct-12-2016, 01:00 PM
RE: More codebox issues - by snippsat - Oct-12-2016, 09:10 PM
RE: More codebox issues - by metulburr - Oct-13-2016, 12:09 AM
RE: More codebox issues - by metulburr - Oct-13-2016, 12:10 AM
RE: More codebox issues - by wavic - Oct-13-2016, 12:26 AM
RE: More codebox issues - by metulburr - Oct-13-2016, 12:38 AM
RE: More codebox issues - by wavic - Oct-13-2016, 01:15 AM
RE: More codebox issues - by metulburr - Oct-13-2016, 03:39 AM
RE: More codebox issues - by Skaperen - Oct-13-2016, 04:16 AM
RE: More codebox issues - by wavic - Oct-13-2016, 08:15 AM
RE: More codebox issues - by snippsat - Oct-13-2016, 01:09 PM
RE: More codebox issues - by Kebap - Oct-13-2016, 01:38 PM
RE: More codebox issues - by metulburr - Oct-13-2016, 02:00 PM
RE: More codebox issues - by snippsat - Oct-13-2016, 02:13 PM
RE: More codebox issues - by metulburr - Oct-13-2016, 03:31 PM
RE: More codebox issues - by sparkz_alot - Oct-13-2016, 04:04 PM
RE: More codebox issues - by metulburr - Oct-13-2016, 04:19 PM
RE: More codebox issues - by Kebap - Oct-13-2016, 04:31 PM
RE: More codebox issues - by metulburr - Oct-13-2016, 04:35 PM
RE: More codebox issues - by wavic - Oct-13-2016, 05:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  codebox usage help doc metulburr 0 1,707 Oct-31-2020, 12:12 PM
Last Post: metulburr
  single/double quote escapes codebox highlighter metulburr 3 3,588 Aug-08-2017, 01:36 PM
Last Post: metulburr
  codebox borders metulburr 15 16,068 Nov-24-2016, 04:04 AM
Last Post: snippsat
  URL not showing properly in comments of codebox Larz60+ 4 5,627 Nov-05-2016, 04:23 PM
Last Post: Larz60+
  Syntax Highlighter Codebox Issues metulburr 38 28,811 Oct-06-2016, 01:06 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

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