Hologram gets official VS Code extension

The official Hologram extension for VS Code is now live! It brings full syntax highlighting for HOLO templates - ~HOLO sigils in .ex files and standalone .holo template files.

As the template language has grown, writing HOLO in plain text started to feel increasingly painful - this extension fixes that and makes the editing experience much more pleasant.

Thanks to our sponsors for making sustained development possible: Curiosum (Main Sponsor), Erlang Ecosystem Foundation (Milestones Sponsor), and our GitHub sponsors - Innovation Partner: @sheharyarn, Framework Visionaries: @absowoot, Oban, @Lucassifoni, @robertu, and all other GitHub sponsors.

Full details in the blog post: Hologram Gets Official VS Code Support

12 Likes

While I think I may be the last Vimmer in the Elixir community to have not moved onto NeoVim at this point, I have a PR in the works to bring this to Vim. I’ll likely merge in the next couple of weeks.

3 Likes

Nice, good to see Vim getting some love too! I haven’t done any research yet on how other editors handle this, but I’m planning to create dedicated packages for other editors as well - including Vim, if applicable. Contributions are welcome - if you’re interested in contributing to the Vim side, you’re more than invited! I believe that the TextMate grammars could be reused in some editors, which should make it easier to bring Hologram syntax highlighting to more places.

For Neovim/Helix (and some more obscure ones), it’s as easy as creating a set of treesitter queries (sigil too). Both editors also have a means for users to add custom queries to their config, so we don’t have to wait for official support to get merged and released.

2 Likes

Thanks, will take a look at this!

For Vim it’s easy to piggback off the work that was already done for (H)EEx (takes care of most highlighting and auto-indent). I just had to add control blocks and {} inside HTML attribute values. The PR you see is basically covers done, I’m just sitting on it for a couple of weeks to make sure I didn’t break anything (which I’ve done before). The only plus side of breaking things is that I get to see who some of the other Vim users are :upside_down_face: There is actually an issue with tuples being mistaken for Hologram delimiters, but once I’ve fixed that I’ll merge.

I actually think it’s odd how elixir.vim is overly community aware as opposed to having separate packages, but it was like that long before I came on so I’m just rolling with it.

1 Like

Love your amazing work!

2 Likes

Thank you, appreciate it! :slight_smile:

Good to get syntax highlighting, that plain text sure was grating :slightly_smiling_face:

1 Like