Giter VIP home page Giter VIP logo

atom-markdown-cell-highlight's Introduction

atom markdown-cell-highlight package

A simple :atom: package to highlight code cells in markdown files; this can be useful, for example, when editing Weave files in Juno or using Hydrogen's rich (multi) language document feature, etc.

To install:

λ apm install markdown-cell-highlight

example look

ariake-dark-syntax one-light syntax
ariake-dark-example one-light-example

config

  • markdown-cell-highlight.targetScopes: If specified, this package will highlight code cells with the specified languages scopes. By default (i.e. ["source.embedded", "text.embedded"]), it will highlight every code cell even without language scope. E.g.: if you only want to highlight Julia code cells, you can modify this config into ["source.embedded.julia"].
  • markdown-cell-highlight.markdownScopes: Specifies grammar scopes that this package will consider as markdown files and try to highlight code cells. Set to ["text.md", "source.gfm", "source.weave.md", "source.pweave.md"] by default.

custom styling

You can have custom styles (i.e. custom colors, mostly) via your stylesheet:

.atom/styles.less

// style for cell body
.line.markdown-cell-highlight {
  background: @whatever-color-you-want-for-cell-body;
}
// style for cell gutter
.line-number.markdown-cell-highlight {
  background: @whatever-color-you-want-for-cell-gutter;
}

license

This package is under MIT License.

author

  • Shuhei Kadowaki - undergraduate @ kyoto univ. - aviatesk

atom-markdown-cell-highlight's People

Contributors

aviatesk avatar

Stargazers

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