Comments (10)
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.
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.
Wrong button, sorry!
from minted.
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.
I was not able to find the words "cache" and "caching" in the minted manual... Is there a quick explanation available?
from minted.
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.
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.
Yes, having the latest minted.sty
in the document directory should work fine.
from minted.
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.
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)
- Add an option to not show error boxes HOT 1
- multicols HOT 7
- Breaking line within \newmintinline throws error
- `linerange` to select the exact lines to output HOT 2
- `newmintedfile` env* to specify additional options HOT 9
- [bug] `gobble` results in malformed formatting, `autogobble` works HOT 5
- [show-&-tell] ad-hoc adoptations from a different style to another one. HOT 1
- [feature] Support for PDDL programming language HOT 2
- [bug][compatibility] `Verbatim` environment generated by `minted` with `mathescape` broken with `babel`'s `magyar.ldf` (Hungarian 🇭🇺 language) HOT 1
- JSX highlighting is not working in overleaf HOT 1
- breaksymbolleft flush with line numbers HOT 2
- Write env content to file HOT 2
- Failed Compilation with MikTeX on windows HOT 19
- Overfull hbox with `mintinline` and `breakanywhere` in enumerate environment HOT 1
- Escapeinside content is misplaced in pygtex file for nodejsrepl type HOT 7
- Because of changes in one of the most popular Python installer on Mac, doc needs an improvement (`pip3 install Pygments` doesn't work anymore) HOT 1
- file extension `lol' cannot be used twice HOT 3
- autogobble option not working for me HOT 12
- Can not compile via latexmk in Windows HOT 5
- Missing Pygments output; \inputminted... HOT 2
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 minted.