Comments (3)
There are a couple things you can do to fix this. The syntax highlighting engine used by Literate is prettify.js. There are a number of languages that are supported via extensions (of which Lisp/Scheme is one) but they need to have an extra javascript file included. This is simple enough by adding the following line to the first section (or any other section):
<script src="https://raw.githubusercontent.com/google/code-prettify/master/src/lang-lisp.js"></script>
If you do this, make sure to set the code_type
to lisp. I'll fix this soon so that it uses the language extension instead of the actual language name. EDIT: Fixed with the most recent commit (80e7f26).
(I realized that the vim highlighting for comments //
was broken -- if you update the plugin it should be fixed).
It would be possible for Literate to automatically add in the javascript for language extensions, so I'll probably add this in a future update. EDIT: added with commit 2ed387f.
The second option is to disable the syntax highlighting completely. You can do this by adding the following line to the top of the file:
@colorscheme /dev/null
I realize this isn't the nicest solution, I'll work on adding either a flag or a command (such as @no_colorscheme
) to disable syntax highlighting.
from literate.
Thanks for the quick response! That works great.
from literate.
I've just made another commit (2ed387f) so that Literate will automatically include the javascript, so you can basically disregard the whole <script src=...
to include the extension. Just pull the latest version of Literate (or clone a new version), run make, and everything should just work (you can use the original file you had -- no extra changes are necessary).
from literate.
Related Issues (20)
- Infinite Loop with multiple includes HOT 4
- Extra newlines at end of files
- Integrate with Jekyll
- Markdown compiler HOT 1
- links in text HOT 1
- SIGSEGV on OSX when compiling
- Feature Request: `run` command HOT 2
- Weaved documents contain references to missing fonts
- Line directives without a space, e.g. `#20`
- git clone of Literate does not build HOT 1
- Can we backport patches from program sources to literate sources?
- Windows build
- Output markdown instead of HTML HOT 2
- Output file sub directories HOT 4
- Is it possible to include generated figures
- References to code blocks in normal text are not translated to clickable links
- Unintentional equations in markdown
- Output to stdout
- Add markdown syntax highlighting
- Parsing compiler output not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from literate.