Code Monkey home page Code Monkey logo

read_paste's Introduction

read_paste [OPTIONS] URL

Downloads URL, getting the raw format for the supported pastebins. If URL is
not one of the supported pastebins, it is treated as already being in a raw
format. Normally writes to stdout, unless -e or --editor is used.

 Options:
  -h, --help            display this help and exit
  -e, --editor          opens file with vim after downloading
  -H, --highlight SYN   when using the -e or --editor option, tells vim
                        what the filetype is for syntax highlighting. while this
                        program will automatically try to get this information
                        from the site, doing so will not always be possible.
                        this option will override any information acquired from
                        the site.
  -a, --add SYN=LANG    add SYN to the configuration file. LANG must be a *.vim
                        file in your vim's VIMRUNTIME or in ~/.vim/syntax. the
                        .vim on the file may be omitted. This option can be
                        used multiple times, to add multiple syntaxes. Any
                        existing SYN in the file will be overwritten with the
                        new value for LANG.
  -l, --list            list available values for SYN and exit
  -r, --remove-cr       force removal of carriage returns (ASCII 13) from
                        downloaded files
  -f, --file FILE       if -e is not used, write to FILE instead of stdout. if
                        -e is used, use FILE instead of a temp file

Valid syntaxes for -H are stored in:
  "${XDG_CONFIG_HOME:-$HOME/.config}/read_paste/syntaxes.conf"

Currently supported pastebins:
  gist.github.com
  pastebin.com (will automatically remove CRs)
  paste.pocoo.org
  pastie.org
  sprunge.us


syntaxes.conf:
  This file contains the valid syntaxes for -H. Each line contains two fields,
  key:value.  "key" is the term that read_paste looks for, when determining
  what language to use syntax highlighting for. "value" is the appropriate
  *.vim file in your VIMRUNTIME/syntax directory. The '.vim' at the end is
  omitted in the config. 

read_paste's People

Contributors

e36freak avatar

Watchers

 avatar  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.