gptscript icon indicating copy to clipboard operation
gptscript copied to clipboard

Support syntax highlighting for `.gpt` files

Open njhale opened this issue 1 year ago • 1 comments

Description

Provide syntax highlighting for .gpt files in at least one editor.

Motivation

Humans like colorful text.

Possible Solutions

It looks like a few popular editors like GoLand and VSCode support TextMate Grammar based syntax highlighting, so if it's possible to produce one that approximates .gpt file sytax => QED.

Bonus points for getting gptscript to generate the grammar by analyzing examples and introspecting its own source code.

njhale avatar Feb 08 '24 16:02 njhale

ive created a very basic highlighter extension for vscode - https://github.com/drpebcak/gptscript-vscode

drpebcak avatar Feb 20 '24 19:02 drpebcak