An open API service indexing awesome lists of open source software.

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.

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.