(Oct-11-2020, 08:10 PM)rain Wrote: i designed a highlighter in my css codes, that allows you to highlight a specific codes "thread-highlight", you can set it up using the default mybb "MyCode".Okay look at that later.
I just added some test in Admin part of forum.
I can post it here to:
Testing syntaxhighlighter on Light Theme.
Edit: added for Dark Theme.
Test python tag.
class Foo: def __init__(self, frob, frotz): self.frobnicate = frob self.frotz = frotz class Bar(Foo): def __init__(self, frob, frizzle): super().__init__(frob, frizzle) self.frotz = 34 self.frazzle = frizzle bar = Bar(1,2) print(f"frobnicate: {bar.frobnicate}") print(f"frotz: {bar.frotz}")Test of output tag.
Output:
frobnicate: 1
frotz: 34
Quote:Test of quote The quick brown fox jumps over the lazy dog.
Error:Test of error tag.
Test inline
Code and inline syntax work,problem with output and errors tags.
Call maybe default stuff?
Have to look more into it,we load Custom Code Tags (1.1) from stranac.
Think maybe most add those tags in YourCode,then aslo fix button in Editor.
Long time since have done this so have to try some stuff.