mirror of
https://github.com/facebook/sapling.git
synced 2024-10-04 22:07:44 +03:00
d496b5c44c
Summary: Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/sapling/pull/264). * __->__ https://github.com/facebook/sapling/issues/264 [docs] add sl-shell-example syntax-highlighting language Right now the example sl sessions have no hightlighting, or sometimes they pretend to be bash, which kind-of-half-works but also half doesn't work and is ugly (See the "Before" example - there is random highlighting for some numbers in the middle of command output, the ".." in "..." is randomly highlighted as a directory, etc) This diff adds a new custom Prism language called "sl-shell-example" which does syntax highlighting specifically tailored for our example sessions with these main parts: ``` # comment $ shell command ~/my/subdir $ shell command in a specific subdirectory output ``` {F806536674} (For the record, Prism already has a language called "shell-session", but that language doesn't support comments (which is something we make heavy use of), and also it tries to be clever by highlighting random words in the middle of shell commands (which is just distracting in the context of sapling docs)) Pull Request resolved: https://github.com/facebook/sapling/pull/264 Test Plan: Before: {F806536931} After: {F806537002} Reviewed By: quark-zju Differential Revision: D41522986 Pulled By: shish fbshipit-source-id: fda9beb423a3c74d90c4cb387eb8cba3914a4693 |
||
---|---|---|
.. | ||
addons | ||
commands | ||
git | ||
internals | ||
introduction | ||
overview | ||
scale |