Skip to content

Commit

Permalink
Add --lang to the man page
Browse files Browse the repository at this point in the history
  • Loading branch information
walles committed Jan 2, 2024
1 parent cb07ce3 commit d5fb484
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions moar.1
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ Print debug logs after exiting, less verbose than
Scrolls automatically to follow piped input, just like
.B tail \-f
.TP
\fB\-\-lang\fR=string
Used for highlighting.
Without this flag highlighting is based on the input file name.
Valid values are MIME types like \fBtext/x-markdown\fP, file extensions like \fBmd\fP or language names like \fBmarkdown\fP.
For the source of truth on what is supported exactly, look in https://github.com/alecthomas/chroma/tree/master/lexers/embedded or its parent directory.
.TP
\fB\-\-mousemode\fR={\fBauto\fR | \fBselect\fR | \fBscroll\fR}
Guarantee selecting text with the mouse works but maybe not mouse scrolling.
Or guarantee mouse scrolling works but selecting text requiring extra effort.
Expand Down

0 comments on commit d5fb484

Please sign in to comment.