bat -l json — force a specific language for highlighting

bat -l json — force a specific language for highlighting

bat -l json data.json

bat's `-l` flag overrides auto-detection and forces a specific syntax grammar. This is useful for files without extensions or for highlighting templated configs that resemble a known language.

#json #bat #syntax #language #highlight

ダウンロード

⬇ GIF (283.3 KB) ⬇ MP4 (変換中...)

埋め込み

[![bat -l json — force a specific language for highlighting](https://media.agentgif.com/preseed/bat-language/demo.gif)](https://agentgif.com/@agentgif/bat-language)
<a href="https://agentgif.com/@agentgif/bat-language"><img src="https://media.agentgif.com/preseed/bat-language/demo.gif" alt="bat -l json — force a specific language for highlighting" width="1200"></a>
<iframe src="https://agentgif.com/embed/jGYUxQ4C/" width="1200" height="660" frameborder="0" allowfullscreen></iframe>
<div data-agentgif="jGYUxQ4C"></div><script src="https://agentgif.com/widget.js" async></script>
作成者: @agentgif · · 44 回視聴