Present elegant code elegantly

TL;DR: Pass your code snippets to Codye to generate beautiful publication-ready images and HTML of it, but only for MacOS.

Outputs

Image: great for PowerPoint and printout of your custom t-shirt

HTML: useful for web publications

#include<: useful for web publications 

int main(int argc, char *argv[]) {   /An annoying “Hello World” example/   for (auto i = 0; i < 0xFFFF; i++)     cout << “Hello, World!" << endl;   char c = ’\n’;   unordered_map <string, vector<string> > m;   m[“key”] = ”\\"; // this is an error   return -2e3 + 12l; }

However I find annoying that I have to reaplace all space characters with not-breaking spaces (⌘+space) in order to preserve code indentation. There maybe be other ways to fix this, but that’s the easiest workaround I found.

Published At
Creative Commons Attribution-ShareAlike (CC BY-SA)