VsTeXCommentsExtension icon indicating copy to clipboard operation
VsTeXCommentsExtension copied to clipboard

Add Fortran Support

Open ja72 opened this issue 6 years ago • 1 comments

Is it as simple as adding the corresponding lines in TextSnapshotTeXCommentBlocks?

public static readonly HashSet<string> SupportedContentTypes = new HashSet<string>() 
{ "CSharp", "F#", "C/C++", "Basic", "Python", "R", "Fortran" };

public static readonly Dictionary<string, string> CommentPrefixPerContentType = new Dictionary<string, string>()
{
    { "CSharp", "//" },
    { "F#", "//" },
    { "C/C++", "//" },
    { "Basic", "'" },
    { "Python", "#" },
    { "R", "#" },
    { "Fortran", "!"},  
};

public static readonly Dictionary<string, string> TeXCommentPrefixPerContentType = new Dictionary<string, string>()
{
    { "CSharp", "//tex:" },
    { "F#", "//tex:" },
    { "C/C++", "//tex:" },
    { "Basic", "'tex:" },
    { "Python", "#tex:" },
    { "R", "#tex:" },
    { "Fortran", "!tex:"},
};

ja72 avatar Jun 12 '19 15:06 ja72

#73 I made the change and tested the add-in locally. Freeform Fortran files now are supported.

ja72 avatar May 09 '21 23:05 ja72