-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Go support #10
base: master
Are you sure you want to change the base?
Add Go support #10
Conversation
Initial naive Go language syntax highlighting as of Go 1.18 Based on https://go.dev/ref/spec#Lexical_elements
I'd like to add an example in Go to Examples/ later too, but I first need to master the syntax. |
Generally speaking we're asking people not to submit new functionality with PRs yet, but this seems like a quite reasonable addition which doesn't complicate anything else, so I'm inclined to accept. Can you in practice use Inweb sensibly on a Go project with just this change? |
I haven't fully built my example in Go, yet. I'm coming from srcweave (which would've been the ideal tool for me if not for the fact it's written in Lisp and there's some issues with it under WSL1) so the syntax is quite different. Would you mind telling me how to make parts of text bold (if that's possible) and how to include one part of code in another? In srcweave I can just name a code snippet (i e |
This is the Web I wrote. Strangely, nothing is displayed at all when I switch to
|
Initial naive Go language syntax highlighting as of Go 1.18
Based on https://go.dev/ref/spec#Lexical_elements