Jump to content

Recommended Posts

Posted
  On 1/4/2022 at 12:20 AM, TheDcoder said:

If you have the time can you try it on Firefox? If not I can take a look when I am free.

Expand  

I just checked on FireFox with different Theme's and for example using "Blue lagoon" needs another CSS:

Check this one:

pre.geshi {
        background:MidnightBlue!important;
    }

    .kw1{
        color: mediumpurple !important; /*keywords  */
    }

    .kw2{
        color: yellow !important; /*function names  */
    }

    .kw3{
        color: violet !important; /*function names  */
    }

    .st0{
        color: mediumaquamarine !important; /* strings */
    }

    .re0 {
        color: gray !important; /* variables */
    }

    .sy0 {
        color:  lightsalmon !important; /* operators */
    }

    .br0 {
        color: orange !important; /* bracketes */
    }

    .nu0 {
        color: orangered !important; /* numbers */
    }

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Try also to use:
 

pre.geshi {
        background:MidnightBlue!important;
    }

instead:

pre.lang-autoit {
        background:MidnightBlue!important;
    }

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

@mLipok I just realized that your theme is only related to code highlighting, I originally thought it might be a full style like the ones TheSaint made :sweating:

Your update did change the highlighting colour :)

By the way, I suggest removing the advanced options from the header:

@advanced dropdown bg-selected "Background image" {
 image1 "Default image 1" <<<EOT
 url(https://mysite.com/default-background-1.jpg) EOT;
 image2 "Default image 2" <<<EOT
 url(https://mysite.com/default-background-2.jpg) EOT;
 custom "Custom background" <<<EOT
 var(--bg-custom, none) EOT;
 noBG "None" <<<EOT
 none EOT;
}
@advanced text bg-custom "Custom Background; include url()" "url()"

They don't seem to be of any use.

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Posted

Try also:
 

pre.geshi.lang-autoit {
        background:MidnightBlue!important;
    }

    pre.geshi.lang-autoit > .kw1{
        color: mediumpurple !important; /*keywords  */
    }

    pre.geshi.lang-autoit > .kw2{
        color: yellow !important; /*function names  */
    }

    pre.geshi.lang-autoit > .kw3{
        color: violet !important; /*function names  */
    }

    pre.geshi.lang-autoit > .st0{
        color: mediumaquamarine !important; /* strings */
    }

    pre.geshi.lang-autoit > .re0 {
        color: gray !important; /* variables */
    }

    pre.geshi.lang-autoit > .sy0 {
        color:  lightsalmon !important; /* operators */
    }

    pre.geshi.lang-autoit > .br0 {
        color: orange !important; /* bracketes */
    }

    pre.geshi.lang-autoit > .nu0 {
        color: orangered !important; /* numbers */
    }

 

this will fit only for AutoIt cod and not for CSS / XML etc...

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

@mLipok This one is not working in the Blue Lagoon theme :(

Anyway, don't bother yourself with making it compatible with BL theme, when I made the theme I picked a light colour scheme so the default code colours actually match the theme already :)

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Posted

Dark Theme:
 

pre.geshi.lang-autoit {
        background: rgb( var(--theme-area_background)) !important;
    }

    pre.geshi.lang-autoit {
        color: white !important; /* variables */
    }

    pre.geshi.lang-autoit .kw1 {
        color: mediumpurple !important; /*keywords  */
    }

    pre.geshi.lang-autoit .kw2 {
        color: yellow !important; /*function names  */
    }

    pre.geshi.lang-autoit .kw3 {
        color: violet !important; /*function names  */
    }

    pre.geshi.lang-autoit .st0 {
        color: mediumaquamarine !important; /* strings */
    }

    pre.geshi.lang-autoit .re0 {
        color: white !important; /* variables */
    }

    pre.geshi.lang-autoit .sy0 {
        color:  lightsalmon !important; /* operators */
    }

    pre.geshi.lang-autoit .br0 {
        color: orange !important; /* bracketes */
    }

    pre.geshi.lang-autoit .nu0 {
        color: orangered !important; /* numbers */
    }


Lagoon Theme:

 

pre.geshi.lang-autoit {
        background:MidnightBlue!important;
    }

    pre.geshi.lang-autoit {
        color: white !important; /* variables */
    }

    pre.geshi.lang-autoit .kw1 {
        color: mediumpurple !important; /*keywords  */
    }

    pre.geshi.lang-autoit .kw2 {
        color: yellow !important; /*function names  */
    }

    pre.geshi.lang-autoit .kw3 {
        color: violet !important; /*function names  */
    }

    pre.geshi.lang-autoit .st0 {
        color: mediumaquamarine !important; /* strings */
    }

    pre.geshi.lang-autoit .re0 {
        color: white !important; /* variables */
    }

    pre.geshi.lang-autoit .sy0 {
        color:  lightsalmon !important; /* operators */
    }

    pre.geshi.lang-autoit .br0 {
        color: orange !important; /* bracketes */
    }

    pre.geshi.lang-autoit .nu0 {
        color: orangered !important; /* numbers */
    }

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 1/4/2022 at 1:11 AM, TheDcoder said:

Anyway, don't bother yourself with making it compatible with BL them

Expand  

This is not only about bothering, but also about proof of concept. And a proof (for my self) that I can do this .

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 3 weeks later...
Posted (edited)

I just submit:

https://userstyles.world/style/2841/autoit-for-github-com

This is how it looks on GitHub:

2841.webp

 

and here are CSS:

 

div.highlight-source-autoit pre {
    font-weight: bold;
}

div.highlight-source-autoit span.pl-c1 {
    color: blue !important;
}

div.highlight-source-autoit span.pl-s {
    color: green !important;
}

div.highlight-source-autoit span.pl-smi {
    color: chocolate !important;
}

div.highlight-source-autoit span.pl-pds {
    color: black !important;
}

div.highlight-source-autoit span.pl-c {
    color: darkgray !important;
}

div.highlight-source-autoit span.pl-k {
    color: purple !important;
}



table[data-tagsearch-lang~="AutoIt"] {
    font-weight: bold;
}

table[data-tagsearch-lang~="AutoIt"] span.pl-c1 {
    color: blue !important;
}

table[data-tagsearch-lang~="AutoIt"] span.pl-s {
    color: green !important;
}

table[data-tagsearch-lang~="AutoIt"] span.pl-smi {
    color: chocolate !important;
}

table[data-tagsearch-lang~="AutoIt"] span.pl-pds {
    color: black !important;
}

table[data-tagsearch-lang~="AutoIt"] span.pl-c {
    color: darkgray !important;
}

table[data-tagsearch-lang~="AutoIt"] span.pl-k {
    color: purple !important;
}

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

As today I was working ona WebDriver UDF

So I also add:

https://userstyles.world/style/2860/json-for-github

2860.webp

 

You can test it (AutoIt and JSON syntax Highlightment fix) on this link:

https://github.com/Danp2/WebDriver/issues/120

It looks for me like this following screenshot:

image.thumb.png.cd8f4de15024a89ffeda061496286e04.png

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Now finally I can normally work with github ;)

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...