Code Monkey home page Code Monkey logo

decoder's Introduction

 .S_sSSs      sSSs    sSSs    sSSs_sSSs     .S_sSSs      sSSs   .S_sSSs    
.SS~YS%%b    d%%SP   d%%SP   d%%SP~YS%%b   .SS~YS%%b    d%%SP  .SS~YS%%b   
S%S   `S%b  d%S'    d%S'    d%S'     `S%b  S%S   `S%b  d%S'    S%S   `S%b  
S%S    S%S  S%S     S%S     S%S       S%S  S%S    S%S  S%S     S%S    S%S  
S%S    S&S  S&S     S&S     S&S       S&S  S%S    S&S  S&S     S%S    d*S  
S&S    S&S  S&S_Ss  S&S     S&S       S&S  S&S    S&S  S&S_Ss  S&S   .S*S  
S&S    S&S  S&S~SP  S&S     S&S       S&S  S&S    S&S  S&S~SP  S&S_sdSSS   
S&S    S&S  S&S     S&S     S&S       S&S  S&S    S&S  S&S     S&S~YSY%b   
S*S    d*S  S*b     S*b     S*b       d*S  S*S    d*S  S*b     S*S   `S%b  
S*S   .S*S  S*S.    S*S.    S*S.     .S*S  S*S   .S*S  S*S.    S*S    S%S  
S*S_sdSSS    SSSbs   SSSbs   SSSbs_sdSSS   S*S_sdSSS    SSSbs  S*S    S&S  
SSS~YSSY      YSSP    YSSP    YSSP~YSSY    SSS~YSSY      YSSP  S*S    SSS  
                                                               SP          
                                                               Y

Quickly and easily convert a code document to a PDF or MD document

Installation

Required:

Setup

git clone https://github.com/taidanh/decoder
cd decoder
make

Usage

release/decoder -i example.py -o output.pdf -c '#'

Note: It's important to note that the output filetype matters for how the file is proccessed.

release/decoder -i example.rs -o output.md

This will output a Markdown file

Features

  • ✅ Convert from .md to any pandoc supported conversion
  • ✅ Specify any comment string (default: '//')
  • ✅ Automatically uses the input filetype to determine code block syntax

Planned

  • ❌ Multiline comments
  • ❌ Indented lists
  • ❌ Unicode support

How to style your code

// # You can type in normal markdown
// ## Just put it after comments
// *You can* `use other` **markdown syntax**

fn main() {
    println!("This code is able to run normally");
}

decoder's People

Contributors

taidanh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.