I'm not sure if you noticed it, but one of my previous posts had code snippet in DAX and apart from being nicely formatted with Dax Formatter the syntax was highlighed as well. In order to create that snippet I added DAX support to the amazing library highlight.js I use to build my blog.
With this contribution you can format your DAX code as well.
VAR Separator = "; "
'Work Items - Today',
1 + LEN ( [Tags] )
- LEN ( SUBSTITUTE ( [Tags], Separator, "" ) )
The pull request to the main project is still pending so you might need to cherry-pick my commit and build it.
Apart from adding it to the main project, I've also contributed it to the fork which is used by Microsoft in their documentation pipeline. Using this fork is another option you have to enable this feature in your websites.
Hopefully all pull request will be completed soon and everyone will be able to use it by default.