Giter VIP home page Giter VIP logo

Comments (3)

zyedidia avatar zyedidia commented on June 19, 2024

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.

sobjornstad avatar sobjornstad commented on June 19, 2024

Thanks for the quick response! That works great.

from literate.

zyedidia avatar zyedidia commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.