Codebox theme

Discuss issues and requests related with the forum software
mikhail22
Posts: 19
Joined: 14 Jan 2018, 11:50

Codebox theme

14 Nov 2018, 05:59

Syntax highlighting works today on the forum. But please, not this dark theme!
Dark boxes looks awful, please make some light theme.
gregster
Posts: 8916
Joined: 30 Sep 2013, 06:48

Re: Codebox theme

14 Nov 2018, 10:22

Be happy, in the dark 'Digi' theme, which I prefer, syntax highlighting doesn't work at all... I think it's all still in the works.
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Codebox theme

14 Nov 2018, 13:10

SO SORRY! I have not gotten to it yet. I forgot last night... :p
I will have dark syntax highlighting on Digi and light syntax highlighting on Simplicity.
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
gregster
Posts: 8916
Joined: 30 Sep 2013, 06:48

Re: Codebox theme

14 Nov 2018, 13:19

joedf wrote:
14 Nov 2018, 13:10
SO SORRY! I have not gotten to it yet. I forgot last night... :p
I will have dark syntax highlighting on Digi and light syntax highlighting on Simplicity.
Thank you for your work, Joe!
mikhail22
Posts: 19
Joined: 14 Jan 2018, 11:50

Re: Codebox theme

14 Nov 2018, 14:00

gregster wrote:
14 Nov 2018, 10:22
Be happy, in the dark 'Digi' theme, which I prefer, syntax highlighting doesn't work at all... I think it's all still in the works.
That's right - with Digi i see no syntax in codeboxes , it's all green Courier font .
In Prosilver and Simplicity there is syntax highlighting, but with dark theme.
Light global theme should be with light codeboxes and dark theme with dark codeboxes, if it's possible ;)
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Codebox theme

14 Nov 2018, 23:46

Okay, it should be more or less good now :+1:
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Codebox theme

14 Nov 2018, 23:53

Logos should be good too.
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
TAC109
Posts: 1098
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Codebox theme

15 Nov 2018, 00:14

@Joedf Thanks for all your work on the forums, but still some problems:-

Prosilver theme has no syntax colouring in the code boxes.

Clicking on a command in the code box does not link to help.

phBPP still appears in the heading at top of page on left (not AHK logo) - this is when using prosilver theme.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
User avatar
hoppfrosch
Posts: 443
Joined: 07 Oct 2013, 04:05
Location: Rhine-Maine-Area, Hesse, Germany
Contact:

Re: Codebox theme

15 Nov 2018, 00:57

@Joedf: Many thanks for your efforts as well from me.

There are still following problems with light-themed codeboxes in Simplicity here:
* Opening a post, the codeboxes are expanded by default (should be collapsed by default - shouldn't they?)
* Unless the codeboxes are already expanded, "Expand view" is shown on top off the codebox
* Clicking "Expand view" toogles it to "Collapse view" - nothing else happens
* Clicking "Collapse view" collapses the codebox .... BUT: the space previously occupied by the expanded view does not collapse: within this space there is the collapsed codebox and a lot of empty space ....

Using latest firefox 63.0.1
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Codebox theme

15 Nov 2018, 01:27

It seems to work correctly in chrome - except for the fact it starts expanded.
Recommends AHK Studio
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Codebox theme

15 Nov 2018, 02:24

@TAC109 I have not touched the prosilver theme at all. I can update this. Clicking on a command was never intended to be added by me. I could try to implement something, but that was a custom feature. I am not sure what was done to achieve that, possibly some php and modifying geshi... but geshi is not working super well right now.
@hoppfrosch @nnnik Yes, I have noticed this... :/
The expand is also broken for gists...
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: Codebox theme

15 Nov 2018, 20:37

Loving the Monokai theme! Though I would have picked some different colors for some things
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Codebox theme

17 Nov 2018, 06:29

Thank you very much for your efforts joedf.
Would it be possible to remove the blue border on the left side of the code box and move the zero indentation level more to the left, about where the blue line starts now perhaps.
Something like this,
codebox.png
codebox.png (5.22 KiB) Viewed 5987 times
where the bottom most code box is my suggestion, and the top most is what I see now. The problem with the current one is that code gets very far right on my cellular phone.

I use simplicity theme if that matters.

Cheers.
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Codebox theme

17 Nov 2018, 11:20

There might be a better different theme for mobile phones.
Recommends AHK Studio
iseahound
Posts: 1434
Joined: 13 Aug 2016, 21:04
Contact:

Re: Codebox theme

17 Nov 2018, 14:05

I liked the dark theme, how do I get it back?
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Codebox theme

17 Nov 2018, 18:00

:|

The dark theme is on digi. the light theme is on simplicity.
I don't ill be making a switcher, we have other priority fixes... Really hoping tank replies back soon... :(

for the blue border, I will have to apply the following CSS when I get home (no proper access right now):

Code: Select all

pre[class*="language-"] > code {
    border: 0 !important;
    box-shadow: none !important;
}
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Codebox theme

18 Nov 2018, 21:22

Expand/Collapse should be fixed now.
Also, whenever cloudflare refreshes for you, the blue border should be removed now.
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Codebox theme

20 Nov 2018, 01:05

updated prosilver.
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
TAC109
Posts: 1098
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Codebox theme

20 Nov 2018, 03:51

Looks good! Thanks.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
lexikos
Posts: 9553
Joined: 30 Sep 2013, 04:07
Contact:

Re: Codebox theme

21 Apr 2019, 18:44

Why are builtins and strings highlighted in the same (green) colour? Weren't builtins blue before?

They should be distinct. At the moment there are some lines of code that are almost entirely bright green (and they aren't comments, which used to be green...).

Return to “Forum Issues”

Who is online

Users browsing this forum: No registered users and 44 guests