Git Product home page Git Product logo

markdown-redcarpet.tmbundle's Introduction

TextMate Bundle for GitHub's Redcarpet Markdown

First, put this bundle in your TextMate bundle directory:

# Textmate2
mkdir -p ~/Library/Application\ Support/Avian/Bundles/
cd ~/Library/Application\ Support/Avian/Bundles/
git clone https://github.com/Slony/markdown-redcarpet.tmbundle.git

# Then, make sure you've got `redcarpet` and `pygments.rb`
# installed with your gem library with system's Ruby 1.8:
unset GEM_HOME
unset GEM_PATH

sudo /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem install redcarpet -v 2.3.0
sudo /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem install pygments.rb

Redcarpet Markdown Bundle in action

Supported syntaxes inside fenced blocks

The following syntaxes will be highlighted inside the fenced block:

  • Ruby
  • Javascript (as js, javascript)
  • CoffeeScript (as coffee, coffeescript)
  • Shell (as shell, bash, sh)
  • Haml
  • R

Bonus Install the Scott Web Theme from Preferences โ†’ Bundles for a nice looking preview

Reload TextMate and tell it to read .md files as Markdown Redcarpet types.

For more information about GitHub's Redcarpet markdown, checkout this post.

R Markdown

This bundle also supports R Markdown files (Rmd, rmd) by properly scoping fenced R code chunks and inline R code to the R source syntax when used with the R TextMate bundle. You can then use the commands from the R TextMate bundle to evaluate R code, send it to the R GUI, etc. This bundle includes two commands to knit R Markdown files and produce the HTML result: one uses the knitr package while the other one (recommended, see why here) uses the knitrBootstrap package.

For R noweb files (Rnw, rnw) you might be interested in the knitr TextMate bundle which bridges LaTeX and R code.

markdown-redcarpet.tmbundle's People

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.