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!