Skip to content

Commit 3aaebdb

Browse files
committed
content: Implement Pygments Monokai, for upcoming dark theme
For dark theme, web currently uses a mix of Pygments Monokai and Pygments Default. Mixing in Pygments Default seems accidental, so here we just use pure Pygments Monokai. Discussion: https://chat.zulip.org/#narrow/stream/431-redesign-project/topic/code.20span.20colors/near/1832283 LICENSE and AUTHORS files downloaded from: https://github.com/pygments/pygments/blob/f64833d9d/LICENSE https://github.com/pygments/pygments/blob/f64833d9d/AUTHORS (I've included AUTHORS because LICENSE refers to it.) Fixes: #749 Related: #95
1 parent d859da5 commit 3aaebdb

File tree

5 files changed

+574
-1
lines changed

5 files changed

+574
-1
lines changed

assets/Pygments/AUTHORS.txt

Lines changed: 283 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,283 @@
1+
Pygments is written and maintained by Georg Brandl <[email protected]>.
2+
3+
Major developers are Tim Hatch <[email protected]> and Armin Ronacher
4+
5+
6+
Other contributors, listed alphabetically, are:
7+
8+
* Sam Aaron -- Ioke lexer
9+
* Jean Abou Samra -- LilyPond lexer
10+
* João Abecasis -- JSLT lexer
11+
* Ali Afshar -- image formatter
12+
* Thomas Aglassinger -- Easytrieve, JCL, Rexx, Transact-SQL and VBScript
13+
lexers
14+
* Maxence Ahlouche -- PostgreSQL Explain lexer
15+
* Muthiah Annamalai -- Ezhil lexer
16+
* Nikolay Antipov -- OpenSCAD lexer
17+
* Kumar Appaiah -- Debian control lexer
18+
* Andreas Amann -- AppleScript lexer
19+
* Timothy Armstrong -- Dart lexer fixes
20+
* Jeffrey Arnold -- R/S, Rd, BUGS, Jags, and Stan lexers
21+
* Eiríkr Åsheim -- Uxntal lexer
22+
* Jeremy Ashkenas -- CoffeeScript lexer
23+
* José Joaquín Atria -- Praat lexer
24+
* Stefan Matthias Aust -- Smalltalk lexer
25+
* Lucas Bajolet -- Nit lexer
26+
* Ben Bangert -- Mako lexers
27+
* Max Battcher -- Darcs patch lexer
28+
* Thomas Baruchel -- APL lexer
29+
* Tim Baumann -- (Literate) Agda lexer
30+
* Paul Baumgart, 280 North, Inc. -- Objective-J lexer
31+
* Michael Bayer -- Myghty lexers
32+
* Thomas Beale -- Archetype lexers
33+
* John Benediktsson -- Factor lexer
34+
* David Benjamin, Google LLC -- TLS lexer
35+
* Trevor Bergeron -- mIRC formatter
36+
* Vincent Bernat -- LessCSS lexer
37+
* Christopher Bertels -- Fancy lexer
38+
* Sébastien Bigaret -- QVT Operational lexer
39+
* Jarrett Billingsley -- MiniD lexer
40+
* Adam Blinkinsop -- Haskell, Redcode lexers
41+
* Stéphane Blondon -- Procfile, SGF and Sieve lexers
42+
* Frits van Bommel -- assembler lexers
43+
* Pierre Bourdon -- bugfixes
44+
* Martijn Braam -- Kernel log lexer, BARE lexer
45+
* Matthias Bussonnier -- ANSI style handling for terminal-256 formatter
46+
* chebee7i -- Python traceback lexer improvements
47+
* Hiram Chirino -- Scaml and Jade lexers
48+
* Mauricio Caceres -- SAS and Stata lexers.
49+
* Michael Camilleri, John Gabriele, sogaiu -- Janet lexer
50+
* Ian Cooper -- VGL lexer
51+
* David Corbett -- Inform, Jasmin, JSGF, Snowball, and TADS 3 lexers
52+
* Leaf Corcoran -- MoonScript lexer
53+
* Gabriel Corona -- ASN.1 lexer
54+
* Christopher Creutzig -- MuPAD lexer
55+
* Daniël W. Crompton -- Pike lexer
56+
* Pete Curry -- bugfixes
57+
* Bryan Davis -- EBNF lexer
58+
* Bruno Deferrari -- Shen lexer
59+
* Walter Dörwald -- UL4 lexer
60+
* Luke Drummond -- Meson lexer
61+
* Giedrius Dubinskas -- HTML formatter improvements
62+
* Owen Durni -- Haxe lexer
63+
* Alexander Dutton, Oxford University Computing Services -- SPARQL lexer
64+
* James Edwards -- Terraform lexer
65+
* Nick Efford -- Python 3 lexer
66+
* Sven Efftinge -- Xtend lexer
67+
* Artem Egorkine -- terminal256 formatter
68+
* Matthew Fernandez -- CAmkES lexer
69+
* Paweł Fertyk -- GDScript lexer, HTML formatter improvements
70+
* Michael Ficarra -- CPSA lexer
71+
* James H. Fisher -- PostScript lexer
72+
* William S. Fulton -- SWIG lexer
73+
* Carlos Galdino -- Elixir and Elixir Console lexers
74+
* Michael Galloy -- IDL lexer
75+
* Naveen Garg -- Autohotkey lexer
76+
* Simon Garnotel -- FreeFem++ lexer
77+
* Laurent Gautier -- R/S lexer
78+
* Alex Gaynor -- PyPy log lexer
79+
* Richard Gerkin -- Igor Pro lexer
80+
* Alain Gilbert -- TypeScript lexer
81+
* Alex Gilding -- BlitzBasic lexer
82+
* GitHub, Inc -- DASM16, Augeas, TOML, and Slash lexers
83+
* Bertrand Goetzmann -- Groovy lexer
84+
* Krzysiek Goj -- Scala lexer
85+
* Rostyslav Golda -- FloScript lexer
86+
* Andrey Golovizin -- BibTeX lexers
87+
* Matt Good -- Genshi, Cheetah lexers
88+
* Michał Górny -- vim modeline support
89+
* Alex Gosse -- TrafficScript lexer
90+
* Patrick Gotthardt -- PHP namespaces support
91+
* Hubert Gruniaux -- C and C++ lexer improvements
92+
* Olivier Guibe -- Asymptote lexer
93+
* Phil Hagelberg -- Fennel lexer
94+
* Florian Hahn -- Boogie lexer
95+
* Martin Harriman -- SNOBOL lexer
96+
* Matthew Harrison -- SVG formatter
97+
* Steven Hazel -- Tcl lexer
98+
* Dan Michael Heggø -- Turtle lexer
99+
* Aslak Hellesøy -- Gherkin lexer
100+
* Greg Hendershott -- Racket lexer
101+
* Justin Hendrick -- ParaSail lexer
102+
* Jordi Gutiérrez Hermoso -- Octave lexer
103+
* David Hess, Fish Software, Inc. -- Objective-J lexer
104+
* Ken Hilton -- Typographic Number Theory and Arrow lexers
105+
* Varun Hiremath -- Debian control lexer
106+
* Rob Hoelz -- Perl 6 lexer
107+
* Doug Hogan -- Mscgen lexer
108+
* Ben Hollis -- Mason lexer
109+
* Max Horn -- GAP lexer
110+
* Fred Hornsey -- OMG IDL Lexer
111+
* Alastair Houghton -- Lexer inheritance facility
112+
* Tim Howard -- BlitzMax lexer
113+
* Dustin Howett -- Logos lexer
114+
* Ivan Inozemtsev -- Fantom lexer
115+
* Hiroaki Itoh -- Shell console rewrite, Lexers for PowerShell session,
116+
MSDOS session, BC, WDiff
117+
* Brian R. Jackson -- Tea lexer
118+
* Christian Jann -- ShellSession lexer
119+
* Jonas Camillus Jeppesen -- Line numbers and line highlighting for
120+
RTF-formatter
121+
* Dennis Kaarsemaker -- sources.list lexer
122+
* Dmitri Kabak -- Inferno Limbo lexer
123+
* Igor Kalnitsky -- vhdl lexer
124+
* Colin Kennedy - USD lexer
125+
* Alexander Kit -- MaskJS lexer
126+
* Pekka Klärck -- Robot Framework lexer
127+
* Gerwin Klein -- Isabelle lexer
128+
* Eric Knibbe -- Lasso lexer
129+
* Stepan Koltsov -- Clay lexer
130+
* Oliver Kopp - Friendly grayscale style
131+
* Adam Koprowski -- Opa lexer
132+
* Benjamin Kowarsch -- Modula-2 lexer
133+
* Domen Kožar -- Nix lexer
134+
* Oleh Krekel -- Emacs Lisp lexer
135+
* Alexander Kriegisch -- Kconfig and AspectJ lexers
136+
* Marek Kubica -- Scheme lexer
137+
* Jochen Kupperschmidt -- Markdown processor
138+
* Gerd Kurzbach -- Modelica lexer
139+
* Jon Larimer, Google Inc. -- Smali lexer
140+
* Olov Lassus -- Dart lexer
141+
* Matt Layman -- TAP lexer
142+
* Kristian Lyngstøl -- Varnish lexers
143+
* Sylvestre Ledru -- Scilab lexer
144+
* Chee Sing Lee -- Flatline lexer
145+
* Mark Lee -- Vala lexer
146+
* Thomas Linder Puls -- Visual Prolog lexer
147+
* Pete Lomax -- Phix lexer
148+
* Valentin Lorentz -- C++ lexer improvements
149+
* Ben Mabey -- Gherkin lexer
150+
* Angus MacArthur -- QML lexer
151+
* Louis Mandel -- X10 lexer
152+
* Louis Marchand -- Eiffel lexer
153+
* Simone Margaritelli -- Hybris lexer
154+
* Tim Martin - World of Warcraft TOC lexer
155+
* Kirk McDonald -- D lexer
156+
* Gordon McGregor -- SystemVerilog lexer
157+
* Stephen McKamey -- Duel/JBST lexer
158+
* Brian McKenna -- F# lexer
159+
* Charles McLaughlin -- Puppet lexer
160+
* Kurt McKee -- Tera Term macro lexer, PostgreSQL updates, MySQL overhaul, JSON lexer
161+
* Joe Eli McIlvain -- Savi lexer
162+
* Lukas Meuser -- BBCode formatter, Lua lexer
163+
* Cat Miller -- Pig lexer
164+
* Paul Miller -- LiveScript lexer
165+
* Hong Minhee -- HTTP lexer
166+
* Michael Mior -- Awk lexer
167+
* Bruce Mitchener -- Dylan lexer rewrite
168+
* Reuben Morais -- SourcePawn lexer
169+
* Jon Morton -- Rust lexer
170+
* Paulo Moura -- Logtalk lexer
171+
* Mher Movsisyan -- DTD lexer
172+
* Dejan Muhamedagic -- Crmsh lexer
173+
* Adrien Nayrat -- PostgreSQL Explain lexer
174+
* Ana Nelson -- Ragel, ANTLR, R console lexers
175+
* David Neto, Google LLC -- WebGPU Shading Language lexer
176+
* Kurt Neufeld -- Markdown lexer
177+
* Nam T. Nguyen -- Monokai style
178+
* Jesper Noehr -- HTML formatter "anchorlinenos"
179+
* Mike Nolta -- Julia lexer
180+
* Avery Nortonsmith -- Pointless lexer
181+
* Jonas Obrist -- BBCode lexer
182+
* Edward O'Callaghan -- Cryptol lexer
183+
* David Oliva -- Rebol lexer
184+
* Pat Pannuto -- nesC lexer
185+
* Jon Parise -- Protocol buffers and Thrift lexers
186+
* Benjamin Peterson -- Test suite refactoring
187+
* Ronny Pfannschmidt -- BBCode lexer
188+
* Dominik Picheta -- Nimrod lexer
189+
* Andrew Pinkham -- RTF Formatter Refactoring
190+
* Clément Prévost -- UrbiScript lexer
191+
* Tanner Prynn -- cmdline -x option and loading lexers from files
192+
* Oleh Prypin -- Crystal lexer (based on Ruby lexer)
193+
* Nick Psaris -- K and Q lexers
194+
* Xidorn Quan -- Web IDL lexer
195+
* Elias Rabel -- Fortran fixed form lexer
196+
* raichoo -- Idris lexer
197+
* Daniel Ramirez -- GDScript lexer
198+
* Kashif Rasul -- CUDA lexer
199+
* Nathan Reed -- HLSL lexer
200+
* Justin Reidy -- MXML lexer
201+
* Jonathon Reinhart, Google LLC -- Soong lexer
202+
* Norman Richards -- JSON lexer
203+
* Corey Richardson -- Rust lexer updates
204+
* Fabrizio Riguzzi -- cplint leder
205+
* Lubomir Rintel -- GoodData MAQL and CL lexers
206+
* Andre Roberge -- Tango style
207+
* Georg Rollinger -- HSAIL lexer
208+
* Michiel Roos -- TypoScript lexer
209+
* Konrad Rudolph -- LaTeX formatter enhancements
210+
* Mario Ruggier -- Evoque lexers
211+
* Miikka Salminen -- Lovelace style, Hexdump lexer, lexer enhancements
212+
* Stou Sandalski -- NumPy, FORTRAN, tcsh and XSLT lexers
213+
* Matteo Sasso -- Common Lisp lexer
214+
* Joe Schafer -- Ada lexer
215+
* Max Schillinger -- TiddlyWiki5 lexer
216+
* Andrew Schmidt -- X++ lexer
217+
* Ken Schutte -- Matlab lexers
218+
* René Schwaiger -- Rainbow Dash style
219+
* Sebastian Schweizer -- Whiley lexer
220+
* Tassilo Schweyer -- Io, MOOCode lexers
221+
* Pablo Seminario -- PromQL lexer
222+
* Ted Shaw -- AutoIt lexer
223+
* Joerg Sieker -- ABAP lexer
224+
* Robert Simmons -- Standard ML lexer
225+
* Kirill Simonov -- YAML lexer
226+
* Corbin Simpson -- Monte lexer
227+
* Ville Skyttä -- ASCII armored lexer
228+
* Alexander Smishlajev -- Visual FoxPro lexer
229+
* Steve Spigarelli -- XQuery lexer
230+
* Jerome St-Louis -- eC lexer
231+
* Camil Staps -- Clean and NuSMV lexers; Solarized style
232+
* James Strachan -- Kotlin lexer
233+
* Tom Stuart -- Treetop lexer
234+
* Colin Sullivan -- SuperCollider lexer
235+
* Ben Swift -- Extempore lexer
236+
* tatt61880 -- Kuin lexer
237+
* Edoardo Tenani -- Arduino lexer
238+
* Tiberius Teng -- default style overhaul
239+
* Jeremy Thurgood -- Erlang, Squid config lexers
240+
* Brian Tiffin -- OpenCOBOL lexer
241+
* Bob Tolbert -- Hy lexer
242+
* Doug Torrance -- Macaulay2 lexer
243+
* Matthias Trute -- Forth lexer
244+
* Tuoa Spi T4 -- Bdd lexer
245+
* Erick Tryzelaar -- Felix lexer
246+
* Alexander Udalov -- Kotlin lexer improvements
247+
* Thomas Van Doren -- Chapel lexer
248+
* Dave Van Ee -- Uxntal lexer updates
249+
* Daniele Varrazzo -- PostgreSQL lexers
250+
* Abe Voelker -- OpenEdge ABL lexer
251+
* Pepijn de Vos -- HTML formatter CTags support
252+
* Matthias Vallentin -- Bro lexer
253+
* Benoît Vinot -- AMPL lexer
254+
* Linh Vu Hong -- RSL lexer
255+
* Immanuel Washington -- Smithy lexer
256+
* Nathan Weizenbaum -- Haml and Sass lexers
257+
* Nathan Whetsell -- Csound lexers
258+
* Dietmar Winkler -- Modelica lexer
259+
* Nils Winter -- Smalltalk lexer
260+
* Davy Wybiral -- Clojure lexer
261+
* Whitney Young -- ObjectiveC lexer
262+
* Diego Zamboni -- CFengine3 lexer
263+
* Enrique Zamudio -- Ceylon lexer
264+
* Alex Zimin -- Nemerle lexer
265+
* Rob Zimmerman -- Kal lexer
266+
* Vincent Zurczak -- Roboconf lexer
267+
* Hubert Gruniaux -- C and C++ lexer improvements
268+
* Thomas Symalla -- AMDGPU Lexer
269+
* 15b3 -- Image Formatter improvements
270+
* Fabian Neumann -- CDDL lexer
271+
* Thomas Duboucher -- CDDL lexer
272+
* Philipp Imhof -- Pango Markup formatter
273+
* Thomas Voss -- Sed lexer
274+
* Martin Fischer -- WCAG contrast testing
275+
* Marc Auberer -- Spice lexer
276+
* Amr Hesham -- Carbon lexer
277+
* diskdance -- Wikitext lexer
278+
* vanillajonathan -- PRQL lexer
279+
* Nikolay Antipov -- OpenSCAD lexer
280+
* Markus Meyer, Nextron Systems -- YARA lexer
281+
* Hannes Römer -- Mojo lexer
282+
283+
Many thanks for all contributions!

assets/Pygments/LICENSE.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (c) 2006-2022 by the respective authors (see AUTHORS file).
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are
6+
met:
7+
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
11+
* Redistributions in binary form must reproduce the above copyright
12+
notice, this list of conditions and the following disclaimer in the
13+
documentation and/or other materials provided with the distribution.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

lib/licenses.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ Stream<LicenseEntry> additionalLicenses() async* {
1515
yield LicenseEntryWithLineBreaks(
1616
['Noto Color Emoji'],
1717
await rootBundle.loadString('assets/Noto_Color_Emoji/LICENSE'));
18+
yield LicenseEntryWithLineBreaks(
19+
['Pygments'],
20+
await () async {
21+
final [licenseFileText, authorsFileText] = await Future.wait([
22+
rootBundle.loadString('assets/Pygments/LICENSE.txt'),
23+
rootBundle.loadString('assets/Pygments/AUTHORS.txt'),
24+
]);
25+
26+
return '$licenseFileText\n\nAUTHORS file follows:\n\n$authorsFileText';
27+
}());
1828
yield LicenseEntryWithLineBreaks(
1929
['Source Code Pro'],
2030
await rootBundle.loadString('assets/Source_Code_Pro/LICENSE.md'));

0 commit comments

Comments
 (0)