A simple 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
ariake-dark-syntax | one-light syntax |
---|---|
![]() |
![]() |
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.
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;
}
This package is under MIT License.
- Shuhei Kadowaki - undergraduate @ kyoto univ. - aviatesk