Code Monkey home page Code Monkey logo

Comments (10)

gpoore avatar gpoore commented on August 19, 2024

There isn't a way to do that currently. If you can tell me a bit more about the conditions when you would use such as feature, I can think about whether there is a way to add it.

from minted.

NobbZ avatar NobbZ commented on August 19, 2024

Obviously, it is to speed up draft builds...
It doesn't need to be a box, maybe we could print unhighlighted listing with appropriate font and size, but just plain, without a call to pygmentize?

from minted.

NobbZ avatar NobbZ commented on August 19, 2024

Wrong button, sorry!

from minted.

gpoore avatar gpoore commented on August 19, 2024

Typesetting everything without highlighting should be pretty straightforward. I will look into it as soon as I have a chance to get back to minted development. To get as much performance as possible in the meantime, you might look into using caching, if you haven't already.

from minted.

NobbZ avatar NobbZ commented on August 19, 2024

I was not able to find the words "cache" and "caching" in the minted manual... Is there a quick explanation available?

from minted.

gpoore avatar gpoore commented on August 19, 2024

Caching is only supported by the version here on GitHub; I haven't quite finished things and released to CTAN. When you use the package option cache, all of your highlighted code will be saved in a temporary directory in your document's directory, so that it doesn't have to be rebuilt each time. This significantly increases performance.

from minted.

NobbZ avatar NobbZ commented on August 19, 2024

Is having the minted sty in the directory enough or do I need additional
files?
Am 17.07.2014 16:14 schrieb "Geoffrey Poore" [email protected]:

Caching is only supported by the version here on GitHub; I haven't quite
finished things and released to CTAN. When you use the package option
cache, all of your highlighted code will be saved in a temporary directory
in your document's directory, so that it doesn't have to be rebuilt each
time. This significantly increases performance.


Reply to this email directly or view it on GitHub
#39 (comment).

from minted.

gpoore avatar gpoore commented on August 19, 2024

Yes, having the latest minted.sty in the document directory should work fine.

from minted.

NobbZ avatar NobbZ commented on August 19, 2024

Thank you, this sped up the overall building process a little!

Anyway, I believe that a draft-option would come in handy too.

from minted.

gpoore avatar gpoore commented on August 19, 2024

There's now a draft mode. It typesets everything with fancyvrb; the main thing you lose is syntax highlighting. Most things will be extremely similar to their appearance in normal mode, except for the colors. Aside from a little (probably negligible) macro overhead, it will be as fast as using fancyvrb directly, since I was able to get it to work without using any temporary files.

If you are using draft together with cache, the cache files will be saved (no automatic cleanup) until draft mode is turned off. So you won't lose any caching performance by switching draft on and off as it is useful.

Let me know if you find any bugs. Most things not related to syntax highlighting will work, except for autogobble.

from minted.

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.