It seems like nothing could be simpler. But there are some gotchas with respect to rewrites. The big challenge, though, is that your existing URLs are stored as serialized data, which means that if you do a search and replace on the database, the universe ends, or something like that.
A simple “brush” for Syntax Highlighter Evolved which will not only add syntax highlighting for Liquid, it will also let you simply and easily add a Liquid code block in Gutenberg in Wordpress. Handy if you are going to blog about Liquid or Shopify.