Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New Theme
#7
(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.
metulburr likes this post
Reply


Messages In This Thread
New Theme - by snippsat - Oct-11-2020, 11:07 AM
RE: New Theme - by rain - Oct-11-2020, 04:12 PM
RE: New Theme - by snippsat - Oct-11-2020, 06:40 PM
RE: New Theme - by rain - Oct-11-2020, 07:22 PM
RE: New Theme - by snippsat - Oct-11-2020, 07:56 PM
RE: New Theme - by rain - Oct-11-2020, 08:10 PM
RE: New Theme - by snippsat - Oct-11-2020, 08:24 PM
RE: New Theme - by metulburr - Oct-11-2020, 11:19 PM
RE: New Theme - by snippsat - Oct-12-2020, 08:39 AM
RE: New Theme - by snippsat - Oct-12-2020, 08:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New Theme for all users snippsat 14 16,726 Apr-30-2021, 11:23 AM
Last Post: metulburr
  Theme and Editor tips snippsat 0 6,771 Nov-29-2020, 12:20 PM
Last Post: snippsat
  rain theme glitch? metulburr 2 2,320 Oct-12-2020, 10:44 PM
Last Post: metulburr
  alerts in new theme metulburr 4 2,779 Oct-12-2020, 04:37 PM
Last Post: snippsat
  Responsive theme kamaleon 5 4,365 Dec-31-2019, 10:55 PM
Last Post: metulburr
  Theme change snippsat 15 10,792 Nov-17-2018, 09:18 PM
Last Post: j.crater
  Dim theme metulburr 9 7,831 Aug-02-2017, 03:09 AM
Last Post: metulburr
  Dark theme metulburr 21 18,879 Oct-11-2016, 06:02 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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