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 related.
I still wasn't able to figure out how can I insert code snippets in Scrivener so they look nice.
Here's an example of a code snippet:
// A Hello World! program in C#.
using System;
namespace HelloWorld
{
class Hello
{
static void Main()
{
Console.WriteLine("Hello World!");
// Keep the console window open in debug mode.
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}
}
Here is an example of how I want it to look, with syntax highlighting:
Is this possible with Scrivener? I know I could just insert images of the code, but I don't want to follow this approach, as when I export the PDF it can make the life of the reader much harder (maybe a reader just want to copy and paste), and it can also make my life much harder, as if I want to change a code snippet I can't just edit within scrivener.
It's worth mentioning that I'm using Scrivener for Windows.