为 .text 字段创建自定义 minimap-titles 语法
Creating custom minimap-titles grammar for .tex fiels
我最近开始使用 Atom 来满足我的 LaTeX 需求,到目前为止它的表现非常好。我正在使用一个名为 minimap
的包将整个代码显示为滚动条,这非常有用,但我无法让 minimap-titles
包正常工作。我得到的评论是用 \*
*\
标记生成的,而不是用 LaTeX 评论字符 %
.
如何将 *.tex 文件扩展名添加到 minimap-titles
识别的文件列表中,然后为其指定定界符语法?
我已经弄明白了。
我已将以下代码添加到 lib.
中 minimap-titles.coffee
的 switch extension
子句中
when 'tex', 'cls'
commentStart = ''
commentEnd = ''
# add '% ' to the beginning of each line
art = art.replace /^/, "% "
art = art.replace /\n/g, "\n% "
您可以通过转到“设置”>“程序包”>“小地图标题”>“查看代码”来编辑代码。
事后看来,这实际上是微不足道的。
我最近开始使用 Atom 来满足我的 LaTeX 需求,到目前为止它的表现非常好。我正在使用一个名为 minimap
的包将整个代码显示为滚动条,这非常有用,但我无法让 minimap-titles
包正常工作。我得到的评论是用 \*
*\
标记生成的,而不是用 LaTeX 评论字符 %
.
如何将 *.tex 文件扩展名添加到 minimap-titles
识别的文件列表中,然后为其指定定界符语法?
我已经弄明白了。 我已将以下代码添加到 lib.
中minimap-titles.coffee
的 switch extension
子句中
when 'tex', 'cls'
commentStart = ''
commentEnd = ''
# add '% ' to the beginning of each line
art = art.replace /^/, "% "
art = art.replace /\n/g, "\n% "
您可以通过转到“设置”>“程序包”>“小地图标题”>“查看代码”来编辑代码。
事后看来,这实际上是微不足道的。