Open brianespinosa opened 2 years ago
Do you mean
``` hello.py
print("Hello, world!")
```
should be highlighted as python? Or you have something different on your mind?
@pomber yes, that is 100% what I am thinking.
can you find/build a map from filename to language? I'll be happy to add the logic to the code
This might be more than we need relative to available language syntax highlighting... but I think we might be able to start with this? https://gist.github.com/ppisarczyk/43962d06686722d26d176fad46879d41
It would be great if when defining a codeblock and putting a filename, that our codeblocks could determine the language for syntax highlighting based on the filename alone.
This of course might be challenging if codeblocks are looking for these frontmatter values in an array.