Possible to include code files with syntax highlighting? #1026
Unanswered
matthewfeickert
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Correct, the I have moved |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I might be getting confused about the differences between what https://github.com/executablebooks/MyST-Parser is capable of now and what https://github.com/executablebooks/mystjs has implemented, but while following and trying to expand the MyST Websites quickstart guide (https://github.com/executablebooks/mystjs-quickstart/tree/ac5b2afa5b560afd7809a25ad8e4c3bc002ca13f) I am trying to add my own example page that would demo the inclusion of code in static files but with relevant syntax highlighting:
This of course includes
code/example.py
but it is not rendered correctly as Python code.From the myst-parser FAQ it seems like this should be possible to do with
but including this produces the warning
at
myst build
.So is this something that is new enough to be included in the
myst-parser
spec but not yet implemented inmystjs
?Environment details
Context for question
I am trying to understand if
mystjs
is something that I should look at for a scientific computing focused blog compared to Hugo. If the sort of things that I'm trying to do are a better fit for Jupyter Book thanmystjs
that would be helpful to know too!Beta Was this translation helpful? Give feedback.
All reactions