mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-30 22:54:07 +00:00 
			
		
		
		
	Highlight C code in all man pages sections
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| [38;2;190;132;255mBAT[0m[38;2;249;38;114m([0m[38;2;230;219;116m1[0m[38;2;249;38;114m)[0m[38;2;248;248;242m                      [0m[38;2;253;151;31mGeneral[0m[38;2;253;151;31m [0m[38;2;253;151;31mCommands[0m[38;2;253;151;31m [0m[38;2;253;151;31mManual[0m[38;2;248;248;242m                     [0m[38;2;190;132;255mBAT[0m[38;2;249;38;114m([0m[38;2;230;219;116m1[0m[38;2;249;38;114m)[0m | ||||
| [38;2;190;132;255mBAT[0m[38;2;249;38;114m([0m[38;2;230;219;116m1[0m[38;2;249;38;114m)[0m[38;2;248;248;242m                      General Commands Manual                     [0m[38;2;190;132;255mBAT[0m[38;2;249;38;114m([0m[38;2;230;219;116m1[0m[38;2;249;38;114m)[0m | ||||
|  | ||||
| [38;2;253;151;31mNAME[0m | ||||
| [38;2;248;248;242m       bat - a cat(1) clone with syntax highlighting and Git integration.[0m | ||||
| [38;2;248;248;242m       bat - a [0m[38;2;166;226;46mcat[0m[38;2;249;38;114m([0m[38;2;190;132;255m1[0m[38;2;249;38;114m)[0m[38;2;248;248;242m clone with syntax highlighting and Git integration.[0m | ||||
|  | ||||
| [38;2;253;151;31mUSAGE[0m | ||||
| [38;2;248;248;242m       bat [OPTIONS] [FILE]...[0m | ||||
| @@ -28,19 +28,19 @@ | ||||
| [38;2;248;248;242m       values  can  be  specified  as  either  '[0m[38;2;166;226;46m--language[0m[38;2;248;248;242m   value',   '[0m[38;2;166;226;46m--lan[0m[38;2;248;248;242m‐[0m | ||||
| [38;2;248;248;242m       guage=value', '[0m[38;2;166;226;46m-l[0m[38;2;248;248;242m value' or '[0m[38;2;166;226;46m-lvalue[0m[38;2;248;248;242m'.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-A[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--show-all[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-A[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--show-all[0m | ||||
|  | ||||
| [38;2;248;248;242m              Show  non-printable  characters  like space, tab or newline. Use[0m | ||||
| [38;2;248;248;242m              '[0m[38;2;166;226;46m--tabs[0m[38;2;248;248;242m' to control the width of the tab-placeholders.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-p[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--plain[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-p[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--plain[0m | ||||
|  | ||||
| [38;2;248;248;242m              Only show plain style, no decorations.  This  is  an  alias  for[0m | ||||
| [38;2;248;248;242m              '[0m[38;2;166;226;46m--style[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mplain'[0m[38;2;248;248;242m.  When  '[0m[38;2;166;226;46m-p[0m[38;2;248;248;242m' is used twice ('[0m[38;2;166;226;46m-pp[0m[38;2;248;248;242m'), it also dis‐[0m | ||||
| [38;2;248;248;242m              '[0m[38;2;166;226;46m--style[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mplain[0m[38;2;248;248;242m'.  When  '[0m[38;2;166;226;46m-p[0m[38;2;248;248;242m' is used twice ('[0m[38;2;166;226;46m-pp[0m[38;2;248;248;242m'), it also dis‐[0m | ||||
| [38;2;248;248;242m              ables    automatic    paging    (alias    for     '[0m[38;2;166;226;46m--style[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mplain[0m | ||||
| [38;2;248;248;242m              [0m[38;2;166;226;46m--pager[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mnever'[0m[38;2;248;248;242m).[0m | ||||
| [38;2;248;248;242m              [0m[38;2;166;226;46m--pager[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mnever[0m[38;2;248;248;242m').[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-l[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--language[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mlanguage[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-l[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--language[0m[38;2;248;248;242m <language>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Explicitly  set  the  language for syntax highlighting. The lan‐[0m | ||||
| [38;2;248;248;242m              guage can be specified as a name (like 'C++' or 'LaTeX') or pos‐[0m | ||||
| @@ -65,54 +65,54 @@ | ||||
| [38;2;248;248;242m              [0m[38;2;166;226;46m--highlight-line[0m[38;2;248;248;242m 40:[0m | ||||
| [38;2;248;248;242m                     highlights lines 40 to the end of the file[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--tabs[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mT[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--tabs[0m[38;2;248;248;242m <T>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Set the tab width to T spaces. Use a width of  0  to  pass  tabs[0m | ||||
| [38;2;248;248;242m              through directly[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--wrap[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mmode[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--wrap[0m[38;2;248;248;242m <mode>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Specify  the  text-wrapping mode (*auto*, never, character). The[0m | ||||
| [38;2;248;248;242m              '[0m[38;2;166;226;46m--terminal-width[0m[38;2;248;248;242m' option can be used in addition to control the[0m | ||||
| [38;2;248;248;242m              output width.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--terminal-width[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mwidth[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--terminal-width[0m[38;2;248;248;242m <width>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Explicitly  set the width of the terminal instead of determining[0m | ||||
| [38;2;248;248;242m              it automatically. If prefixed with '+' or '-', the value will be[0m | ||||
| [38;2;248;248;242m              treated  as  an  offset  to the actual terminal width. See also:[0m | ||||
| [38;2;248;248;242m              '[0m[38;2;166;226;46m--wrap[0m[38;2;248;248;242m'.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-n[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--number[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-n[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--number[0m | ||||
|  | ||||
| [38;2;248;248;242m              Only show line numbers, no other decorations. This is  an  alias[0m | ||||
| [38;2;248;248;242m              for '[0m[38;2;166;226;46m--style[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mnumbers'[0m | ||||
| [38;2;248;248;242m              for '[0m[38;2;166;226;46m--style[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mnumbers[0m[38;2;248;248;242m'[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--color[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mwhen[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--color[0m[38;2;248;248;242m <when>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Specify  when to use colored output. The automatic mode only en‐[0m | ||||
| [38;2;248;248;242m              ables colors if an interactive terminal  is  detected.  Possible[0m | ||||
| [38;2;248;248;242m              values: *auto*, never, always.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--italic-text[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mwhen[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--italic-text[0m[38;2;248;248;242m <when>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Specify  when  to use ANSI sequences for italic text in the out‐[0m | ||||
| [38;2;248;248;242m              put. Possible values: always, *never*.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--decorations[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mwhen[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--decorations[0m[38;2;248;248;242m <when>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Specify when to use the decorations that have been specified via[0m | ||||
| [38;2;248;248;242m              '[0m[38;2;166;226;46m--style[0m[38;2;248;248;242m'. The automatic mode only enables decorations if an in‐[0m | ||||
| [38;2;248;248;242m              teractive terminal is detected. Possible values: *auto*,  never,[0m | ||||
| [38;2;248;248;242m              always.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-f[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--force-colorization[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-f[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--force-colorization[0m | ||||
|  | ||||
| [38;2;248;248;242m              Alias  for '[0m[38;2;166;226;46m--decorations[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31malways[0m[38;2;248;248;242m [0m[38;2;166;226;46m--color[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31malways'[0m[38;2;248;248;242m. This is useful[0m | ||||
| [38;2;248;248;242m              Alias  for '[0m[38;2;166;226;46m--decorations[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31malways[0m[38;2;248;248;242m [0m[38;2;166;226;46m--color[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31malways[0m[38;2;248;248;242m'. This is useful[0m | ||||
| [38;2;248;248;242m              if the output of bat is piped to another program, but  you  want[0m | ||||
| [38;2;248;248;242m              to keep the colorization/decorations.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--paging[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mwhen[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--paging[0m[38;2;248;248;242m <when>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Specify when to use the pager. To disable the pager, use '[0m[38;2;166;226;46m--pag[0m[38;2;248;248;242m‐[0m | ||||
| [38;2;248;248;242m              ing=never' or its alias, [0m[38;2;166;226;46m-P[0m[38;2;248;248;242m. To disable the  pager  permanently,[0m | ||||
| @@ -120,7 +120,7 @@ | ||||
| [38;2;248;248;242m              used, see the '[0m[38;2;166;226;46m--pager[0m[38;2;248;248;242m' option. Possible values: *auto*,  never,[0m | ||||
| [38;2;248;248;242m              always.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--pager[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mcommand[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--pager[0m[38;2;248;248;242m <command>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Determine  which  pager  is  used. This option will override the[0m | ||||
| [38;2;248;248;242m              PAGER and BAT_PAGER environment variables. The default pager  is[0m | ||||
| @@ -135,24 +135,24 @@ | ||||
| [38;2;248;248;242m              '*.build:Python'.  To highlight files named '.myignore' with the[0m | ||||
| [38;2;248;248;242m              Git Ignore syntax, use [0m[38;2;166;226;46m-m[0m[38;2;248;248;242m '.myignore:Git Ignore'.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--theme[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mtheme[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--theme[0m[38;2;248;248;242m <theme>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Set the theme for syntax highlighting.  Use  '[0m[38;2;166;226;46m--list-themes[0m[38;2;248;248;242m'  to[0m | ||||
| [38;2;248;248;242m              see  all  available  themes.   To  set  a default theme, add the[0m | ||||
| [38;2;248;248;242m              '[0m[38;2;166;226;46m--theme[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31m"[0m[38;2;248;248;242m..."' option to the configuration file or  export  the[0m | ||||
| [38;2;248;248;242m              '[0m[38;2;166;226;46m--theme[0m[38;2;248;248;242m="..."' option to the configuration file or  export  the[0m | ||||
| [38;2;248;248;242m              BAT_THEME environment variable (e.g.: export BAT_THEME="...").[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--list-themes[0m | ||||
|  | ||||
| [38;2;248;248;242m              Display a list of supported themes for syntax highlighting.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--style[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mstyle-components[0m[38;2;248;248;242m>[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m--style[0m[38;2;248;248;242m <style-components>[0m | ||||
|  | ||||
| [38;2;248;248;242m              Configure  which elements (line numbers, file headers, grid bor‐[0m | ||||
| [38;2;248;248;242m              ders, Git modifications, ..) to display in addition to the  file[0m | ||||
| [38;2;248;248;242m              contents.  The  argument is a comma-separated list of components[0m | ||||
| [38;2;248;248;242m              to display (e.g. 'numbers,changes,grid') or a pre-defined  style[0m | ||||
| [38;2;248;248;242m              ('full').  To set a default style, add the '[0m[38;2;166;226;46m--style[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31m"[0m[38;2;248;248;242m.."' option[0m | ||||
| [38;2;248;248;242m              ('full').  To set a default style, add the '[0m[38;2;166;226;46m--style[0m[38;2;248;248;242m=".."' option[0m | ||||
| [38;2;248;248;242m              to the configuration file or export  the  BAT_STYLE  environment[0m | ||||
| [38;2;248;248;242m              variable (e.g.: export BAT_STYLE=".."). Possible values: *auto*,[0m | ||||
| [38;2;248;248;242m              full, plain, changes, header, grid, numbers, snip.[0m | ||||
| @@ -171,21 +171,21 @@ | ||||
| [38;2;248;248;242m              [0m[38;2;166;226;46m--line-range[0m[38;2;248;248;242m 40:[0m | ||||
| [38;2;248;248;242m                     prints lines 40 to the end of the file[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-L[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--list-languages[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-L[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--list-languages[0m | ||||
|  | ||||
| [38;2;248;248;242m              Display a list of supported languages for syntax highlighting.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-u[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--unbuffered[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-u[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--unbuffered[0m | ||||
|  | ||||
| [38;2;248;248;242m              This option exists for POSIX-compliance reasons ('u' is for 'un‐[0m | ||||
| [38;2;248;248;242m              buffered'). The output is always unbuffered  -  this  option  is[0m | ||||
| [38;2;248;248;242m              simply ignored.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-h[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--help[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-h[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--help[0m | ||||
|  | ||||
| [38;2;248;248;242m              Print this help message.[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-V[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--version[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46m-V[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--version[0m | ||||
|  | ||||
| [38;2;248;248;242m              Show version information.[0m | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user