Sublime Forum

Help me with Syntax (Hugo shortcodes)

#1

Hello!
I’m working with Hugo, so I’m using small code lines written in Go similar to {{ go-lang-code }} inside MarkDown files, and I’d be very helpful if those lines would show in a different color.

I figured out how to set up colors for scopes in the .sublime-color-scheme files, but I can’t create syntax scopes, I tried following the documentation but it’s too complicated for me.

So, I don’t know if this asking a lot, but I’d appreciate a lot if anyone could help me how to step up a pattern that matches those {{ code }} lines – lines that starts with {{ and end with }} and lines that starts with {{< and end with >}}.

Thank you

0 Likes

#2

Hello, for me GoSublime does the job

0 Likes

#3

Thank you! I’ll take a look!

0 Likes

#4

Support for Go Templates including HTML and MD for Hugo is proposed to be provided out of the box by ST at https://github.com/sublimehq/Packages/pull/3744

0 Likes