Skip to content

Add gdscript highlight in markdown code block#1022

Open
at15 wants to merge 1 commit into
godotengine:masterfrom
at15:markdown-v1
Open

Add gdscript highlight in markdown code block#1022
at15 wants to merge 1 commit into
godotengine:masterfrom
at15:markdown-v1

Conversation

@at15

@at15 at15 commented Jun 14, 2026

Copy link
Copy Markdown

Add grammar to highlight gd script in markdown.

The main use case I have is let claude/codex generate me a tutorial doc so that I can
follow it and write the scripts by myself instead of vibe everything.

markdown-gdscript

@at15 at15 marked this pull request as ready for review June 14, 2026 06:06
@HolonProduction

Copy link
Copy Markdown
Member

Just to make sure since you mentioned it in the description: Did you utilize AI to create this PR?

I don't think gd should inject GDScript highlighting, to keep things consistent with Github.

- Only support gdscript, no gd, to be consistent with github behavior
@at15

at15 commented Jun 14, 2026

Copy link
Copy Markdown
Author

Did you utilize AI to create this PR

Yeah, for writing the tmlanguage json. But I didn't find where/how to attribute that in CONTRIBUTING.md,

Changed to only allow gdscript didn't know github has highlight for gdscript, which is case insensitve. I only found gh's highlight for file, didn't find where they configure the fence tag though ...https://github.com/github-linguist/linguist/blob/1d7ac7ed569bd6edef5d0cfc73feea2573cb0e03/lib/linguist/languages.yml#L2411-L2418

extends Node

func _ready() -> void:
	print("Hello from gdscript")
extends Node

func _ready() -> void:
	print("Hello from gdscript")
extends Node

func _ready() -> void:
	print("Hello from gdscript")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants