Page 3 of 6

Re: Fixing codeboxes

Posted: 06 Nov 2018, 23:48
by joedf
@tmplinshi thanks for sharing your efforts. I've noticed the erroneous code for spoiler. I have fixed it.
checking your expand-code... :think:

Re: Fixing codeboxes

Posted: 06 Nov 2018, 23:55
by joedf
Thanks, tmplinshi.
Expand/collapse fixed.

Indents are still problematic, I think it's on the php side... Still haven't found the spot for it....

Re: Fixing codeboxes

Posted: 07 Nov 2018, 00:39
by tmplinshi
Thanks, joedf. Now I can disable the Tampermonkey extension.

BTW, the codebox that inside a Spoiler still doesn't have a Expand/collapse. I don't remember if it was the same when the forum haven't updated, but I have this handled with checkChildCodebox function.

Re: Fixing codeboxes

Posted: 07 Nov 2018, 00:44
by tmplinshi
The prosilver theme has indentation.

Re: Fixing codeboxes

Posted: 07 Nov 2018, 07:51
by joedf
Alright I’ll take a look later today. :+1:

Re: Fixing codeboxes

Posted: 07 Nov 2018, 09:45
by jeeswg
I've updated my post here, I'll use it to keep a summary of issues. Cheers.
Fixing codeboxes - Page 2 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 34#p247734

Re: Fixing codeboxes

Posted: 07 Nov 2018, 10:10
by joedf
Thanks, this will be helpful.

Re: Fixing codeboxes

Posted: 11 Nov 2018, 02:35
by just me
Is there any progress in sight?

Re: Fixing codeboxes

Posted: 11 Nov 2018, 22:30
by joedf
[/c] tags updated.
spoiler3 tags fixed.

Re: Fixing codeboxes

Posted: 11 Nov 2018, 22:46
by joedf
did an sql change from forum id 76 to 5, but simply breaks links, old links are not broken despite the new 76 id ... :/

Re: Fixing codeboxes

Posted: 12 Nov 2018, 04:33
by just me

Code: Select all

Loop, % ColorArray.Length() + 1 {
   Opts := (A_Index = 1) ? "xm ym" : (Mod(A_Index, 16) = 1) ? "xm y+-1" : "x+-1 yp"
   Gui, Add, Text, %Opts% w24 h24 +Border gColorSelected vC%I%
   I++
}
Still no indentation in code boxes after about a month. That's not a 'nice to have' function for a coder forum. What's so difficult with it?

Simplicity on Firefox 63.0.1 (64-bit).

Re: Fixing codeboxes

Posted: 12 Nov 2018, 12:55
by joedf
Sorry, I have been on and off on this. There's some php somewhere that takes away indentation/spaces when it is being displayed. I don't want to screw up the phpbb code until I find a proper solution...

Re: Fixing codeboxes

Posted: 13 Nov 2018, 03:04
by just me
Thanks so far. Any chance to get dark lettering on light background for Simplicity?

Re: Fixing codeboxes

Posted: 13 Nov 2018, 03:34
by nnnik
Yeah Simplicity is a light theme - the code boxes should be the same.

Re: Fixing codeboxes

Posted: 13 Nov 2018, 10:06
by jeeswg
Thanks joedf. :thumbup: I can now update my signature.

before:
homepage | tutorials
[code boxes are currently not working 100%]
[click the 'Reply with quote' button on a post to see the full indented text]

after:
homepage | tutorials | wish list

Re: Fixing codeboxes

Posted: 13 Nov 2018, 11:40
by joedf
Whoops! Mine is stuck on Coy theme
Image

There's different themes here... let me know if there's a preferred one, if not Coy :+1:
https://prismjs.com/

Re: Fixing codeboxes

Posted: 13 Nov 2018, 11:46
by nnnik
Well I seem to get the Twilight theme.

Re: Fixing codeboxes

Posted: 13 Nov 2018, 11:48
by joedf
Should it not be a light theme? I don't mind. whatever works for most.
Also, lots more themes here... waaayyyy more: https://github.com/PrismJS/prism-themes

Re: Fixing codeboxes

Posted: 13 Nov 2018, 11:56
by nnnik
Thats not what I meant. I'm currently seeing a different theme from you.
After clicking through the themes it seems to be the Twighlight theme that I get.
Image

Re: Fixing codeboxes

Posted: 13 Nov 2018, 14:33
by joedf
Yes, this is correct. the twilight theme is the one currently setup on the server.
My cache / cloudflare has not updated. Anyway, do you think Coy is a better theme for now?