Skip to content

Instantly share code, notes, and snippets.

@mehori
Last active September 16, 2024 06:22
Show Gist options
  • Save mehori/4ebcd29640a1231d80f4421303494cf6 to your computer and use it in GitHub Desktop.
Save mehori/4ebcd29640a1231d80f4421303494cf6 to your computer and use it in GitHub Desktop.
{
"editor.tokenColorCustomizations": {
"textMateRules": [
// 太字
{ "scope": "markup.bold.markdown", "settings": { "foreground": "#222222", "fontStyle": "bold" } },
{ "scope": "punctuation.definition.bold.markdown", "settings": { "foreground": "#222222", "fontStyle": "bold" } },
// 見出し部分
// ”# 見出し" の # 部分の色
{ "scope": "punctuation.definition.heading.markdown", "settings": { "foreground": "#4599C4", "fontStyle": "bold" } },
// "# 見出し" の 見出し 部分の色
{ "scope": "entity.name.section.markdown", "settings": { "foreground": "#4599C4", "fontStyle": "bold" } },
// h1,h2,h3 それぞれの色
{ "scope": "heading.1.markdown entity.name.section.markdown", "settings": { "foreground": "#4599C4", "fontStyle": "bold" } },
{ "scope": "heading.2.markdown entity.name.section.markdown", "settings": { "foreground": "#4599C4", "fontStyle": "bold" } },
{ "scope": "heading.3.markdown entity.name.section.markdown", "settings": { "foreground": "#4599C4", "fontStyle": "bold" } },
// 箇条書きのバレット部分
{ "scope": "punctuation.definition.list.begin.markdown", "settings": { "foreground": "#4f4f4f" } },
// リンク [テキスト](URL) の URL 部分、テキスト部分、[]()の記号部分の色
{ "scope": "markup.underline.link.markdown", "settings": { "foreground": "#4f4f4f", "fontStyle": "" } },
{ "scope": "string.other.link.title.markdown", "settings": { "foreground": "#4f4f4f" } },
{ "scope": "punctuation.definition.metadata.markdown", "settings": { "foreground": "#4599C4" } },
// 画像関係
// ![画像](URL) の "(" と ")" と "[" と "]" の色
{ "scope": "punctuation.definition.link.title.begin.markdown", "settings": { "foreground": "#4599C4" } },
{ "scope": "punctuation.definition.link.title.end.markdown", "settings": { "foreground": "#4599C4" } },
{ "scope": "punctuation.definition.link.description.begin.markdown", "settings": { "foreground": "#4599C4" } },
{ "scope": "punctuation.definition.link.description.end.markdown", "settings": { "foreground": "#4599C4" } },
// ![画像](URL) の "URL" の色
{ "scope": "markup.underline.link.image.markdown", "settings": { "foreground": "#4f4f4f" } },
// ![画像](URL) の "画像" の色
{ "scope": "string.other.link.description.markdown", "settings": { "foreground": "#4f4f4f" } },
// 引用部分の色
{ "scope": "markup.quote.markdown", "settings": { "foreground": "#4599C4", } },
// テーブル関係
{ "scope": "punctuation.definition.table.markdown", "settings": { "foreground": "#666666" } },
{ "scope": "markup.table.markdown", "settings": { "foreground": "#4f4f4f" } },
{ "scope": "punctuation.separator.table.markdown", "settings": { "foreground": "#666666" } },
{ "scope": "meta.separator.markdown", "settings": { "foreground": "#666666" } },
// yaml frontmatter の色
{ "scope": "entity.name.tag.yaml", "settings": { "foreground": "#4599C4" }} ,
{ "scope": "string.unquoted.plain.out.yaml", "settings": { "foreground": "#4f4f4f" }} ,
{ "scope": "string.quoted.double.yaml", "settings": { "foreground": "#4f4f4f" }} ,
{ "scope": "string.quoted.double.yaml", "settings": { "foreground": "#4f4f4f" }} ,
{ "scope": "punctuation.definition.string", "settings": { "foreground": "#4f4f4f" }} ,
// hugo 関係の色
{ "scope": "string.quoted.double.hugo", "settings": { "foreground": "#4f4f4f" } }
]
},
// リンクのURLの下線を消す
"[markdown]": {"editor.links": false}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment