I display a lot of decompiled code in my blog when writing up research on compiled binaries. Over the years I’ve bounced between screenshots (pain in the ass) to copied HLIL/pseudo-c without address (loses valuable context but looks pretty) to HLIL/pseudo-c (easy, highlights kinda ugly).
This isn’t particularly high-quality or production grade code — it was the result of an afternoon yak shave that was Good Enough for my use case and I haven’t thought about it since — I mention it here because of marginally higher discovery on my blog than a random GitHub repo.
you can find it here :) do let me know if there are any edge cases or low hanging fruit improvements that would help your use case and I’d be happy to work on it more.