Post #89 written by Khodok in Blog Updates
Code Highlight!
Now code can be highlighted like this:
JavaScript | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
This is the code from Kheee, only the Javascript, I know it’s not the best way to do it but it’s because when I first made it I was learning stuff and decided to do it a this way, and then I kept it and just updated it with new things later, and to be honest I kinda like it
And I have 500 different languages I can highlight.
It took months, why?
Well… Idk why I never checked the Network after adding the extension doing this… but they actually don’t provide a CSS by default… and I just never read THE EXACT LINE saying it
So now I added this CSS and it uses Palenight Dark, but I’d want it to be Shades of Purple… sadly I need to make it myself since nobody did at the moment and I know how… it’s just a long work since I have to make it look good, so I’ll do it at some point… or never