Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions sheets/html.ssh
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Style sheet for HTML
# Copyright (c) 1997, 98 Jim Diamond, Akim Demaille, Miguel Santana, Wesley Chun
# $Id: html.ssh,v 1.1.1.1.2.1 2007/12/29 01:58:30 mhatta Exp $
#

#
# This file is part of a2ps.
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
Expand All @@ -24,18 +23,18 @@
# 0.1 akim@freefriends.org:
# first version
#
# 1.0 wesc@alpha.ece.ucsb.edu:
# 1.0 wescpy@gmail.com:
# added comments and bolded HTML tags
#
# FIXME: Beware of < and > for regex.
#
#
style HTML is

written by "Akim Demaille <akim@freefriends.org>, Wesley J. Chun <wesc@alpha.ece.ucsb.edu>"
written by "Akim Demaille <akim@freefriends.org>, Wesley J. Chun <wescpy@gmail.com>"

version is 1.1
requires a2ps 4.12a
requires a2ps 4.13

documentation is
"This style is meant to pretty print HTML source files, not to simulate"
Expand Down
17 changes: 9 additions & 8 deletions sheets/python.ssh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Style sheet for python
# Copyright (c) 1988, 89, 90, 91, 92, 93 Miguel Santana
# Copyright (c) 1995, 96, 97, 98 Akim Demaille, Miguel Santana
# $Id: python.ssh,v 1.1.1.1.2.1 2007/12/29 01:58:32 mhatta Exp $
#

#
Expand All @@ -27,11 +26,13 @@
# Fixed the ''' strings ''' (Reported by Lorenzo M. Catucci)
## 1.2 Akim Demaille
# Documentation
## 1.3 Wesley Chun
# Updates to Python language

style Python is

written by "Akim Demaille <akim@freefriends.org>"
version is 1.2
version is 1.3
requires a2ps version 4.9.5

documentation is
Expand All @@ -51,22 +52,22 @@ documentation is
"documentation."
""
"The Python interpreter is easily extended with new functions and data"
"types implemented in C or C++ (or other languages callable from"
"C). Python is also suitable as an extension language for customizable"
"types implemented in C or C++ (or other languages callable from C)."
"Python is also suitable as an extension language for customizable"
"applications."
end documentation


first alphabet is
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_"
second alphabet is
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_"
case sensitive

keywords in Keyword_strong are
and, elif, from, lambda, return, break, else, global, not, try,
class, except, if, or, while, continue, exec, import, pass, def,
finally, "in", print, del, "is", raise, for
and, assert, async, await, break, "case", class, continue, def,
del, elif, else, except, False, finally, for, from, global,
if, "in", "is", import, lambda, match, None, nonlocal, not,
or, pass, raise, return, True, try, while, yield
end keywords

optional keywords are
Expand Down