hicat

Command-line syntax highlighter

  • 所有者: rstacruz/hicat
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

hicat :cat:

cat with syntax highlighting. The language is auto-detected through the file
extension.

hicat index.js

Pipe something to hicat. The language will be inferred from the contents.

curl http://site.com, hicat

If hicat fails to detect a language, specify it using -l LANG.

curl http://site.com, hicat -l xml

Status

Installation

$ npm install -g hicat

npm version

Usage:

$ hicat --help

  Usage:
      hicat [options] FILE
      ..., hicat [options]

  Options:
      -h, --help         print usage information
      -v, --version      show version info and exit
      -l, --lang LANG    use a given language
          --languages    list available languages
          --no-pager     disable the pager

Tips and tricks

Add an alias to your ~/.bashrc to save a few keystrokes.

alias hi=hicat

Btw

highlight.js powers the syntax highlighter engine.

Thanks

hicat © 2014+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors.

ricostacruz.com  · 
GitHub @rstacruz  · 
Twitter @rstacruz

主要指標

概覽
名稱與所有者rstacruz/hicat
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證
所有者活动
創建於2014-07-30 03:33:57
推送於2022-11-10 10:22:02
最后一次提交2021-04-08 13:32:18
發布數18
最新版本名稱v0.9.0 (發布於 2021-04-08 13:32:18)
第一版名稱v0.1.0 (發布於 2014-07-30 11:40:07)
用户参与
星數406
關注者數8
派生數53
提交數119
已啟用問題?
問題數7
打開的問題數1
拉請求數5
打開的拉請求數5
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?