Skip to content

Add first-line detection for extensionless G-code files - #76

Open
S3NTYN3L wants to merge 1 commit into
appliedengdesign:masterfrom
S3NTYN3L:add-firstline-detection
Open

Add first-line detection for extensionless G-code files#76
S3NTYN3L wants to merge 1 commit into
appliedengdesign:masterfrom
S3NTYN3L:add-firstline-detection

Conversation

@S3NTYN3L

@S3NTYN3L S3NTYN3L commented Aug 1, 2026

Copy link
Copy Markdown

Many CNC controllers and DNC workflows use extensionless G-code program files.

This adds first-line language detection for files beginning with the standard
standalone % program delimiter, allowing automatic syntax highlighting without
requiring a filename extension.

The pattern allows optional whitespace and UTF-8 BOM characters.

@S3NTYN3L
S3NTYN3L requested a review from mikecentola as a code owner August 1, 2026 19:12

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening your first pull reqest in VSCode G-Code Syntax!
Please make sure you read the Contributing Guide and follow the Code of Conduct.

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.

1 participant