TeX Comments is a Visual Studio (2017 & 2019) add-in that renders math in comments into pretty equations. It supports inline math with $...$
and display math with $$...$$
. It now supports Fortran files and is activated with !tex:
adornment style comment.
Code example:
!tex: Golden ratio is $\Phi = \frac{1 + \sqrt{5}}{2}$
Here is a screenshot from “view” mode
and the same code in “edit” mode