# Syntax highlighting used by forum.freemdict.com

**URL:** <https://forum.freemdict.com/t/topic/42313>\
**Category:** 网站站务\
**Created:** [2025 年12 月 8 日 13:35 UTC](https://forum.freemdict.com/t/topic/42313 "2025-12-08T13:35:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

作者： ![Akira](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/ba8739/32.png) [@Akira](https://forum.freemdict.com/u/Akira)\
发布日期： [2025 年12 月 8 日 13:35 UTC](https://forum.freemdict.com/t/topic/42313/1 "2025-12-08T13:35:36Z")

</div>

I found that the syntax highlighting by the site is very ease to the eyes. For example,

```python
class Dog:
    def __init__ (self, name, age):  
        self.name = name 
        self.age = age

    def bark(self): 
        print(f"{self.name} is barking!")

# Creating an instance of Dog
dog1 = Dog("Buddy", 3)
dog1.bark()

```

and

```CSS
/* User-defined styles */

figure,
script,
td.audiometa,
.sister-wikipedia,
head,
.NavFrame,
.maintenance-line,
[typeof="mw:Extension/templatestyles"],
.thumb,
.bandeau {
    display: none !important;
}

```

I wonder how can I have exactly the same for my VSCode. Thank you for your elaboration.

---

<div class="post-metadata">

作者： ![leon406](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/leon406/32/78518_2.png) [@leon406](https://forum.freemdict.com/u/leon406)\
发布日期： [2025 年12 月 8 日 13:55 UTC](https://forum.freemdict.com/t/topic/42313/2 "2025-12-08T13:55:56Z")

</div>

This site highlight library is highlight.js [Demo - highlight.js](https://highlightjs.org/demo)

And default theme is `atom-one-dark`

[Atom One Dark Theme by Mahmoud Ali | VS Code Themes](https://vscodethemes.com/e/akamud.vscode-theme-onedark/atom-one-dark)

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/1/7/17f4ef246f7c6b0fbc2729f733e9e42cd0d539c4.png)

---

<div class="post-metadata">

作者： ![Akira](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/ba8739/32.png) [@Akira](https://forum.freemdict.com/u/Akira)\
发布日期： [2025 年12 月 8 日 14:10 UTC](https://forum.freemdict.com/t/topic/42313/3 "2025-12-08T14:10:15Z")

</div>

The colors are exactly the same as on stackoverflow, e.g. [https://stackoverflow.com/questions/74277254/how-to-merge-multiple-csv-files-based-on-specific-column-ids](https://stackoverflow.com/questions/74277254/how-to-merge-multiple-csv-files-based-on-specific-column-ids).

---

<div class="post-metadata">

作者： ![Akira](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/ba8739/32.png) [@Akira](https://forum.freemdict.com/u/Akira)\
发布日期： [2025 年12 月 8 日 14:10 UTC](https://forum.freemdict.com/t/topic/42313/4 "2025-12-08T14:10:32Z")

</div>

The colors are not the same…

---

<div class="post-metadata">

作者： ![Akira](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/ba8739/32.png) [@Akira](https://forum.freemdict.com/u/Akira)\
发布日期： [2025 年12 月 8 日 16:48 UTC](https://forum.freemdict.com/t/topic/42313/5 "2025-12-08T16:48:23Z")

</div>

Thank you for your elaboration. I have found that it is `stackoverflow-dark`:

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/3/3/333942cb04727301a859edaa4ab4659348057e4f.png)
