[SOLVED] GambasOne Highlighting: missing underscores

Feel free to talk about non programming issues here.
User avatar
stevedee
Posts: 518
Joined: Monday 20th March 2017 6:06pm

Re: GambasOne Highlighting: missing underscores

Post by stevedee »

stevedee wrote: Saturday 25th December 2021 12:11am ...My simple 3 line change to theme.css shown in post #7 works!
In a subsequent post I will describe how you can test this yourselves using your web browser's Developer Tools...
Please see my blog post: https://captainbodgit.blogspot.com/2021 ... ample.html

Clearly this will only get-you-started as there is a lot more to the browser's Developer Tools than this.

Have fun!
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: [SOLVED] GambasOne Highlighting: missing underscores

Post by cogier »

conclusion
The browser Developer Tools give the user the ability to tweak page elements to see how these changes affect the page display. These changes are not permanent, and can only be made so by the site administrator applying the same changes to the website files.

Therefore you don't have to worry that you might break something on someone else's website!

With the theme.css displayed as shown in the last illustration, it is also possible to highlight all the code in theme.css and save a copy.
Can you send me a copy of this file with the update and I will test it.
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: [SOLVED] GambasOne Highlighting: missing underscores

Post by BruceSteers »

cogier wrote: Tuesday 28th December 2021 1:38pm
conclusion
The browser Developer Tools give the user the ability to tweak page elements to see how these changes affect the page display. These changes are not permanent, and can only be made so by the site administrator applying the same changes to the website files.

Therefore you don't have to worry that you might break something on someone else's website!

With the theme.css displayed as shown in the last illustration, it is also possible to highlight all the code in theme.css and save a copy.
Can you send me a copy of this file with the update and I will test it.
Already have Charlie , a couple of posts back..
download/file.php?id=958
If at first you don't succeed , try doing something differently.
BruceS
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: [SOLVED] GambasOne Highlighting: missing underscores

Post by cogier »

Already have Charlie, a couple of posts back..
Opps! Sorry Bruce

OK I have uploaded the file. Let me know what you think.
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: [SOLVED] GambasOne Highlighting: missing underscores

Post by BruceSteers »

cogier wrote: Tuesday 28th December 2021 3:56pm
Already have Charlie, a couple of posts back..
Opps! Sorry Bruce

OK I have uploaded the file. Let me know what you think.
I don't think it's right.

Is it my imagination or has the left margin increased?
it's possible the 2 figures for the padding: 5px 0 statement are X & Y figures.
so maybe we need to switch them over as i don't think extra left margin was needed?

Or it could be my imagination and there's no change.

Steve knows more about this i suspect than me.

There is this line in the css file...

Code: Select all

.syntaxhighlighter{width:100%!important;margin:1em 0 1em 0!important;position:relative!important;overflow:auto!important;font-size:1em!important}
margin, looks like a candidate to me.

I'll look into Steve's post about testing the theme (not got any time now)
If at first you don't succeed , try doing something differently.
BruceS
User avatar
stevedee
Posts: 518
Joined: Monday 20th March 2017 6:06pm

Re: [SOLVED] GambasOne Highlighting: missing underscores

Post by stevedee »

cogier wrote: Tuesday 28th December 2021 3:56pm ...OK I have uploaded the file. Let me know what you think.
Thanks Charlie, it looks good to me...
Attachments
GoodPadding.png
GoodPadding.png (39.81 KiB) Viewed 7686 times
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: [SOLVED] GambasOne Highlighting: missing underscores

Post by BruceSteers »

Hasn't worked for me. (ish)

What has happened on my end it seems is now the inner container is a bit bigger but the outer one is not.
Ie.
I cannot see the underscore on the lowest line at first but if i drag the mouse down in the text or use mouse wheel it scrolls up a pixel or 2 and then i can.
It works if i use highlight=gambas but not gb

Test using gb /gb ..
This_Has_Underscores
test using highlight=gambas /highlight
This_Has_Underscores
just FYI :)

EDIT: scrap the "it works using highlight" it's wrong on both (i must have scrolled it)
If at first you don't succeed , try doing something differently.
BruceS
User avatar
stevedee
Posts: 518
Joined: Monday 20th March 2017 6:06pm

Re: [SOLVED] GambasOne Highlighting: missing underscores

Post by stevedee »

BruceSteers wrote: Tuesday 28th December 2021 7:46pm ... cannot see the underscore on the lowest line at first but if i drag the mouse down in the text or use mouse wheel it scrolls up a pixel or 2 and then i can...
Bruce, your post looks like this on my browser;
BruceView.png
BruceView.png (29.23 KiB) Viewed 7667 times
If you can follow the steps in my blog post you may be able to find padding settings which also suit your browser.

The example I gave using padding-top and padding-bottom may give better results.

General note: it may be necessary to clear your browser cache when viewing Charlie's modification.
Last edited by stevedee on Wednesday 29th December 2021 11:59am, edited 1 time in total.
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: [SOLVED] GambasOne Highlighting: missing underscores

Post by BruceSteers »

stevedee wrote: Tuesday 28th December 2021 9:22pm
BruceSteers wrote: Tuesday 28th December 2021 7:46pm ... cannot see the underscore on the lowest line at first but if i drag the mouse down in the text or use mouse wheel it scrolls up a pixel or 2 and then i can...
Bruce, your post looks like this on my browser;
BruceView.png

If you can follow the steps in my blog post you may be able to finds padding settings which also suit your browser.

The example I gave using padding-top and padding-bottom may give better results.

General note: it may be necessary to clear your browser cache when viewing Charlie's modification.
Good for you then Steve.

Here's my browser..
Untitled.png
If at first you don't succeed , try doing something differently.
BruceS
User avatar
stevedee
Posts: 518
Joined: Monday 20th March 2017 6:06pm

Re: [SOLVED] GambasOne Highlighting: missing underscores

Post by stevedee »

BruceSteers wrote: Wednesday 29th December 2021 11:40am ...Good for you then Steve...
Yep, ever wish you hadn't started something?

There used to be a great web site where you could check the appearance of any web page, on about 50 different browsers ...for free!

Unfortunately I can't find it. Although there are now loads, they all seem to demand money.

If its too difficult to check your own config using Developer Tools I'd suggest putting the old theme.css back ...as I said before, I'm really not that bothered.
Post Reply