Export code to a word document
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-01-15 20:24:41 +00:00
.github/workflows first commit 2024-01-13 16:29:44 +00:00
src first commit 2024-01-13 16:29:44 +00:00
.gitignore first commit 2024-01-13 16:29:44 +00:00
Cargo.toml first commit 2024-01-13 16:29:44 +00:00
README.md add note about web version 2024-01-15 20:24:41 +00:00

Code to Word

A helper tool to export all code in a directory to a word document. Designed for A Level Computer Science students to help with their NEA technical solution write up.

Web version

If you don't want to download the tool, you can use the web version here.

Source

Examples

code-to-word.exe -i . --overwrite

Usage

Convert your code to word document

Usage: code-to-word.exe [OPTIONS] --input <INPUT>

Options:
  -i, --input <INPUT>
          The input directory to scan for
  -o, --output <OUTPUT>
          The output file to write to [default: output.docx]
      --overwrite
          Whether to override the output file if it already exists
  -e, --extensions <EXTENSIONS>
          Which file extensions to search for and include [default: rs py js ts html css scss md txt]
  -s, --size-font <SIZE_FONT>
          The font size of the code [default: 8]
  -h, --heading-size <HEADING_SIZE>
          The font size of the code headings [default: 12]
  -f, --font-family-heading <FONT_FAMILY_HEADING>
          The font family of the code headings [default: "Calibri Light"]
  -h, --help
          Print help
  -V, --version
          Print version