<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git/doc/docs, branch 2.11.0</title>
<subtitle>github.com: pygments/pygments.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/'/>
<entry>
<title>Add a tooltips option to HtmlFormatter. (#1822)</title>
<updated>2021-12-28T17:12:45+00:00</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2021-12-28T17:12:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=34bf90dcfc8fc32fca8b84e4c56b2805fc0dd82f'/>
<id>34bf90dcfc8fc32fca8b84e4c56b2805fc0dd82f</id>
<content type='text'>
* Add a tooltips option to HtmlFormmater.

* Rename option tooltips to debug_token_types.

* Use explicit if block.

* Fix check.

* Document how to use the new debug_token_types option for the HTML formatter.

* Remove output redirection from example call.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add a tooltips option to HtmlFormmater.

* Rename option tooltips to debug_token_types.

* Use explicit if block.

* Fix check.

* Document how to use the new debug_token_types option for the HTML formatter.

* Remove output redirection from example call.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo, update CHANGES.</title>
<updated>2021-12-06T16:40:28+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2021-12-06T16:40:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=8d3c775500b01cb8a6bc1700637bc18588bf29db'/>
<id>8d3c775500b01cb8a6bc1700637bc18588bf29db</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Clarifying some documentation (#1928)</title>
<updated>2021-12-06T16:38:43+00:00</updated>
<author>
<name>Arthur Milchior</name>
<email>arthur@milchior.fr</email>
</author>
<published>2021-12-06T16:38:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=73b77d5258dfd034b6daa8b6e9c49cb1ab072782'/>
<id>73b77d5258dfd034b6daa8b6e9c49cb1ab072782</id>
<content type='text'>
* NF: adding an example of use of simple filter

@simplefilter is great, but also not very intuitive. Indeeds, the syntax seems
to indicate that you define a function with four arguments while in reality you
define a class whose constructor takes arbitrary keyword arguments. I believe in
this case an example to show how to instantiate this filter is really necessary.

Regarding simplefilter, I also believe that it could be improved in two simple
ways:
* accepting any method which takes lexer and stream as a filter. That would be
  sufficient as long as there is no option
* the @simplefilter decorator could deal with `self` so that the user do not
  have to add it themselves. Probably not worth doing it no, as it would break
  compatibility with current version, but would be even simpler to use

* NF: clarifying get_..._options

get_bool_opt's documentation seems to indicate that the key is interpreted as a
Boolean. While a quick look at the code shows clearly that the value associated
to the key is what is interpreted as a Boolean. I hope I made the code clearer
to any people who know python by indicating that it is essentially `.get` but
with extra features

* NF: clarifying Filter

`filter` has already a specific behavior in general python, or for any people
used to functional programing (and even if some dom processor). So indicating
that a filter is not something that remove some tokens seems really useful to
try to explain what is going on.

* NF: adding details regarding states in lexer

I found the state explanation confusing. I do know what a state machine
is. However, reading the code, I first thought that there were two distinct
variables:
* the current state
* the stack

that are somehow related but distinct. Explaining that the current state is the
top of the stack was lacking in my opinion. That also help explain #push. In
particular that if you define in state "s" an operation whose new state is
"#push", the behavior can be quite different than if the new state was "s".</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* NF: adding an example of use of simple filter

@simplefilter is great, but also not very intuitive. Indeeds, the syntax seems
to indicate that you define a function with four arguments while in reality you
define a class whose constructor takes arbitrary keyword arguments. I believe in
this case an example to show how to instantiate this filter is really necessary.

Regarding simplefilter, I also believe that it could be improved in two simple
ways:
* accepting any method which takes lexer and stream as a filter. That would be
  sufficient as long as there is no option
* the @simplefilter decorator could deal with `self` so that the user do not
  have to add it themselves. Probably not worth doing it no, as it would break
  compatibility with current version, but would be even simpler to use

* NF: clarifying get_..._options

get_bool_opt's documentation seems to indicate that the key is interpreted as a
Boolean. While a quick look at the code shows clearly that the value associated
to the key is what is interpreted as a Boolean. I hope I made the code clearer
to any people who know python by indicating that it is essentially `.get` but
with extra features

* NF: clarifying Filter

`filter` has already a specific behavior in general python, or for any people
used to functional programing (and even if some dom processor). So indicating
that a filter is not something that remove some tokens seems really useful to
try to explain what is going on.

* NF: adding details regarding states in lexer

I found the state explanation confusing. I do know what a state machine
is. However, reading the code, I first thought that there were two distinct
variables:
* the current state
* the stack

that are somehow related but distinct. Explaining that the current state is the
top of the stack was lacking in my opinion. That also help explain #push. In
particular that if you define in state "s" an operation whose new state is
"#push", the behavior can be quite different than if the new state was "s".</pre>
</div>
</content>
</entry>
<entry>
<title>Fix broken link in documentation</title>
<updated>2021-11-04T08:56:40+00:00</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-11-04T07:03:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=0a8b42e9c4cf47572fe1590e97395ed9a0973edc'/>
<id>0a8b42e9c4cf47572fe1590e97395ed9a0973edc</id>
<content type='text'>
Co-authored-by: Georg Brandl &lt;georg@python.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Georg Brandl &lt;georg@python.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add styles gallery to website (#1943)</title>
<updated>2021-11-04T06:55:35+00:00</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-11-04T06:55:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=5a987b8af8dcbddcbd5cade37adebed5b5dd99f1'/>
<id>5a987b8af8dcbddcbd5cade37adebed5b5dd99f1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add documentation for missing CLI options (#1900)</title>
<updated>2021-10-02T10:26:24+00:00</updated>
<author>
<name>amitkummer</name>
<email>49096391+amitkummer@users.noreply.github.com</email>
</author>
<published>2021-10-02T10:26:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=b10a543183598f80ad5928a45c412ecda68e9b8e'/>
<id>b10a543183598f80ad5928a45c412ecda68e9b8e</id>
<content type='text'>
Add documentation for the -N, -g, -s and --json command line options.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add documentation for the -N, -g, -s and --json command line options.</pre>
</div>
</content>
</entry>
<entry>
<title>Support error locations in Python tracebacks (#1852)</title>
<updated>2021-07-06T20:20:03+00:00</updated>
<author>
<name>Jean-Abou-Samra</name>
<email>37271310+Jean-Abou-Samra@users.noreply.github.com</email>
</author>
<published>2021-07-06T20:20:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=2cb532d83dbcd022af413a299679e3018af8b98a'/>
<id>2cb532d83dbcd022af413a299679e3018af8b98a</id>
<content type='text'>
Support both single carets for syntax errors (Python 2 and 3)
and fine-grained error locations with several carets (Python 3.11+).
Previously, the carets were highlighted as operators.  This uses
a new token, Token.Punctuation.Marker.  For now, no style supports
it specifically.  In the future, styles might start differentiating
it from Token.Punctuation.

[Closes #1850.]</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Support both single carets for syntax errors (Python 2 and 3)
and fine-grained error locations with several carets (Python 3.11+).
Previously, the carets were highlighted as operators.  This uses
a new token, Token.Punctuation.Marker.  For now, no style supports
it specifically.  In the future, styles might start differentiating
it from Token.Punctuation.

[Closes #1850.]</pre>
</div>
</content>
</entry>
<entry>
<title>uniformize aliases order (#1780)</title>
<updated>2021-04-26T05:38:51+00:00</updated>
<author>
<name>Mestery</name>
<email>mestery@pm.me</email>
</author>
<published>2021-04-26T05:38:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=3f6244bc1d63674c4290d570ab3676040f2189ee'/>
<id>3f6244bc1d63674c4290d570ab3676040f2189ee</id>
<content type='text'>
* uniformize aliases order

* LighttpdConfLexer: add lighttpd.conf filename</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* uniformize aliases order

* LighttpdConfLexer: add lighttpd.conf filename</pre>
</div>
</content>
</entry>
<entry>
<title>docs: move style development section to its own doc.</title>
<updated>2021-04-16T18:21:33+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2021-04-16T18:21:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=7fd3ff9b1a1a54d2d3ed2e4a4c43af25a03065a3'/>
<id>7fd3ff9b1a1a54d2d3ed2e4a4c43af25a03065a3</id>
<content type='text'>
Reference: #1571
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reference: #1571
</pre>
</div>
</content>
</entry>
<entry>
<title>fix typo (#1762)</title>
<updated>2021-03-30T05:30:41+00:00</updated>
<author>
<name>jgart</name>
<email>47760695+jgarte@users.noreply.github.com</email>
</author>
<published>2021-03-30T05:30:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=e3d5dd5c93ebc84bb7a1224eb1fbebccacfa9518'/>
<id>e3d5dd5c93ebc84bb7a1224eb1fbebccacfa9518</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
