Remy Sharp's blog Welcome!

Hello and welcome to my b:log. I'm Remy Sharp, a developer running my own business called Left Logic out of Brighton, UK. This place will mostly concentrate on web, code, a touch of business and some other personal pieces too - all available here or as a friendly RSS feed. Enjoy!

Latest: Syntax Highlighting in Web Component Templates

A simple but effective fix to working with web components and VS Code. I wanted to get syntax highlighting and prettier support (to auto fix indenting, quotes, etc) in my component's templates.

The extremely quick read is, add /* HTML */ to the front of the template. Case sensitive and space sensitive (though hopefully one day it won't be so strict). Now highlighting and prettier (with save and fix) works.

Note that you need the es6-string-html VS Code extension for this to highlight correct (something I had forgotten I had installed).

Read the rest of this entry »

Recently Updated

Remy Elsewhere