mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Update chroma (#18033)
Update chroma to 0.9.4 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		
							
								
								
									
										11
									
								
								vendor/github.com/alecthomas/chroma/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								vendor/github.com/alecthomas/chroma/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,4 +1,5 @@
 | 
			
		||||
# Chroma — A general purpose syntax highlighter in pure Go [](https://godoc.org/github.com/alecthomas/chroma) [](https://circleci.com/gh/alecthomas/chroma) [](https://goreportcard.com/report/github.com/alecthomas/chroma) [](https://invite.slack.golangbridge.org/)
 | 
			
		||||
# Chroma — A general purpose syntax highlighter in pure Go
 | 
			
		||||
[](https://godoc.org/github.com/alecthomas/chroma) [](https://github.com/alecthomas/chroma/actions/workflows/ci.yml) [](https://invite.slack.golangbridge.org/)
 | 
			
		||||
 | 
			
		||||
> **NOTE:** As Chroma has just been released, its API is still in flux. That said, the high-level interface should not change significantly.
 | 
			
		||||
 | 
			
		||||
@@ -49,7 +50,7 @@ K | Kotlin
 | 
			
		||||
L | Lighttpd configuration file, LLVM, Lua
 | 
			
		||||
M | Mako, markdown, Mason, Mathematica, Matlab, MiniZinc, MLIR, Modula-2, MonkeyC, MorrowindScript, Myghty, MySQL
 | 
			
		||||
N | NASM, Newspeak, Nginx configuration file, Nim, Nix
 | 
			
		||||
O | Objective-C, OCaml, Octave, OpenSCAD, Org Mode
 | 
			
		||||
O | Objective-C, OCaml, Octave, OnesEnterprise, OpenSCAD, Org Mode
 | 
			
		||||
P | PacmanConf, Perl, PHP, PHTML, Pig, PkgConfig, PL/pgSQL, plaintext, Pony, PostgreSQL SQL dialect, PostScript, POVRay, PowerShell, Prolog, PromQL, Protocol Buffer, Puppet, Python 2, Python
 | 
			
		||||
Q | QBasic
 | 
			
		||||
R | R, Racket, Ragel, Raku, react, ReasonML, reg, reStructuredText, Rexx, Ruby, Rust
 | 
			
		||||
@@ -249,11 +250,9 @@ For a quick overview of the available styles and how they look, check out the [C
 | 
			
		||||
<a id="markdown-command-line-interface" name="command-line-interface"></a>
 | 
			
		||||
## Command-line interface
 | 
			
		||||
 | 
			
		||||
A command-line interface to Chroma is included. It can be installed with:
 | 
			
		||||
A command-line interface to Chroma is included.
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
go get -u github.com/alecthomas/chroma/cmd/chroma
 | 
			
		||||
```
 | 
			
		||||
Binaries are available to install from [the releases page](https://github.com/alecthomas/chroma/releases).
 | 
			
		||||
 | 
			
		||||
The CLI can be used as a preprocessor to colorise output of `less(1)`,
 | 
			
		||||
see documentation for the `LESSOPEN` environment variable.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user