: Re: How do I insert programming code snippets within Scrivener? I'm trying out Scrivener, as I intend to write some technical material. I'm a Software Developer and what I intend to write is programming
A quick Google reveals some possible solutions:
"set up your code snippets in a syntactic editor then copy and paste into a Scrivener document, rather than try to replicate that formatting in Scrivener. Each snippet could sit in its own document in the binder, so you could compile those in their prepared format, but then let the rest of the text follow your chosen compile settings."
Another commenter on the same link points out that, if you're using LaTeX for your final output, there are "packages for LaTeX that can do code highlighting within verbatim environments".
"Scrivener 3 has Styles. You can use the Code Block style which switches to a monospaced font suitable for code. When you compile the document, the exact font used can be chosen in the compile settings except for HTML and Epub export where it will use HTML Code tags."
The first option (or LaTeX) seems the better one in my opinion. As a commenter on the first link remarks, Scrivener is a writing program, not a layout program, so you'll likely need to rely on other tools that integrate.
More posts by @Rambettina586
: Shifting from Past tense to present tense I want to make a cartoon video describing my personal experience. Is it okay if I used the past tense to introduce the story first and then shift
: Fiction writing or creative writing? I'd like to take a writing course, and I'm just a little lost on what course to take and need some guidance. Is a creative writing course worth taking
Terms of Use Privacy policy Contact About Cancellation policy © selfpublishingguru.com2024 All Rights reserved.