https://github.com/danielbayley/atom-contextual-preview
:atom: Automatically delegate which preview package to activate based on the active grammar of the current file in @Atom.
https://github.com/danielbayley/atom-contextual-preview
apm atom editor package preview
Last synced: 25 days ago
JSON representation
:atom: Automatically delegate which preview package to activate based on the active grammar of the current file in @Atom.
- Host: GitHub
- URL: https://github.com/danielbayley/atom-contextual-preview
- Owner: danielbayley
- License: other
- Created: 2015-11-24T01:20:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-11T08:41:44.000Z (almost 9 years ago)
- Last Synced: 2025-02-12T11:53:42.634Z (3 months ago)
- Topics: apm, atom, editor, package, preview
- Language: CoffeeScript
- Homepage: https://atom.io/packages/contextual-preview
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Contextual Preview
Automatically delegate which preview package to activate based on the active [grammar](https://atom.io/docs/latest/using-atom-grammar) of the current file.## Behaviour
This package delegates preview events according to the following table.[*](#)| Type | Grammar/scope | Preview package |
|:--------:|:---------------:|:---------------------------------------------------------------:|
| Markdown | source.gfm | [markdown-preview](https://atom.io/packages/markdown-preview) |
| HTML | text.html.basic | [atom-html-preview](https://atom.io/packages/atom-html-preview) |
| __*__ | __*__ | [source-preview](https://atom.io/packages/source-preview) |\* Currently therefore, this means that `apm install html-preview source-preview` is required. Configuration options will be added in future.