You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is the right place to ask this question.
So maybe the first question is what is the right place to ask this question?
I'm trying to use literate (lit) with micro. Everything works great!
I'm trying to use an alternate version of literate, which I got form here: https://github.com/robertkovacs/Literate
This version uses regular markdown (.md) files for the literate program, instead of the .lit files.
I'm trying to get micro to use the .lit mode for .md files.
First, I edited literate.lua, and changed the lines recognising code section:
This worked. Now if I rename the file from file.md to file.lit, it enters the right mode, and code lines are syntax highlighted correctly. Now I also wanted to have the literate mode activated for regular .md files.
How do I do that?
I tried to edit literate.lua, replacing all .lit with .md, or .lit.md or .lid_md. Nothing worked. What is the right way to add a mode to handle a new extension?
Is there a way to switch a buffer to a different mode? So, I would load an .md file and manually switch to literate mode?
Thanks!
The text was updated successfully, but these errors were encountered:
I don't think this is the right place to ask this question.
So maybe the first question is what is the right place to ask this question?
I'm trying to use literate (lit) with micro. Everything works great!
I'm trying to use an alternate version of literate, which I got form here: https://github.com/robertkovacs/Literate
This version uses regular markdown (
.md
) files for the literate program, instead of the.lit
files.I'm trying to get micro to use the
.lit
mode for.md
files.First, I edited
literate.lua
, and changed the lines recognising code section:This worked. Now if I rename the file from file.md to file.lit, it enters the right mode, and code lines are syntax highlighted correctly. Now I also wanted to have the literate mode activated for regular
.md
files.How do I do that?
literate.lua
, replacing all.lit
with.md
, or.lit.md
or.lid_md
. Nothing worked. What is the right way to add a mode to handle a new extension?.md
file and manually switch to literate mode?Thanks!
The text was updated successfully, but these errors were encountered: