List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH] Updated syntax highlighting for highlight 3.6
@ 2011-11-04 23:02 ape
  2012-01-14 16:27 ` ape
  0 siblings, 1 reply; 3+ messages in thread
From: ape @ 2011-11-04 23:02 UTC (permalink / raw)


Hello!

The syntax highlighting filter in cgit doesn't work properly with the 
latest version of highlight. Some CSS class names have changed and there 
is no option -X. This patch fixes these issues.

 From 50574f349b369bbd26b07f0a186c1476b9a9ecca Mon Sep 17 00:00:00 2001
From: Lauri Niskanen <ape at ape3000.com>
Date: Sat, 5 Nov 2011 00:57:48 +0200
Subject: [PATCH] Updated syntax highlighting for highlight 3.6

---
  cgit.css                       |    7 ++++---
  filters/syntax-highlighting.sh |    9 +++++----
  2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/cgit.css b/cgit.css
index 55afa94..253b495 100644
--- a/cgit.css
+++ b/cgit.css
@@ -793,11 +793,12 @@ table.ssdiff td.space div {
  table.blob .num  { color:#2928ff; }
  table.blob .esc  { color:#ff00ff; }
  table.blob .str  { color:#ff0000; }
-table.blob .dstr { color:#818100; }
+table.blob .pps  { color:#818100; }
  table.blob .slc  { color:#838183; font-style:italic; }
  table.blob .com  { color:#838183; font-style:italic; }
-table.blob .dir  { color:#008200; }
-table.blob .sym  { color:#000000; }
+table.blob .ppc  { color:#008200; }
+table.blob .opt  { color:#000000; }
+table.blob .lin  { color:#555555; }
  table.blob .kwa  { color:#000000; font-weight:bold; }
  table.blob .kwb  { color:#830000; }
  table.blob .kwc  { color:#000000; font-weight:bold; }
diff --git a/filters/syntax-highlighting.sh b/filters/syntax-highlighting.sh
index 6283ce9..e592a66 100755
--- a/filters/syntax-highlighting.sh
+++ b/filters/syntax-highlighting.sh
@@ -14,11 +14,12 @@
  # table.blob .num  { color:#2928ff; }
  # table.blob .esc  { color:#ff00ff; }
  # table.blob .str  { color:#ff0000; }
-# table.blob .dstr { color:#818100; }
+# table.blob .pps  { color:#818100; }
  # table.blob .slc  { color:#838183; font-style:italic; }
  # table.blob .com  { color:#838183; font-style:italic; }
-# table.blob .dir  { color:#008200; }
-# table.blob .sym  { color:#000000; }
+# table.blob .ppc  { color:#008200; }
+# table.blob .opt  { color:#000000; }
+# table.blob .lin  { color:#555555; }
  # table.blob .kwa  { color:#000000; font-weight:bold; }
  # table.blob .kwb  { color:#830000; }
  # table.blob .kwc  { color:#000000; font-weight:bold; }
@@ -42,4 +43,4 @@ EXTENSION="${BASENAME##*.}"
  # map Makefile and Makefile.* to .mk
  [ "${BASENAME%%.*}" == "Makefile" ] && EXTENSION=mk

-exec highlight --force -f -I -X -S $EXTENSION 2>/dev/null
+exec highlight --force -f -I -S $EXTENSION 2>/dev/null
-- 
1.7.7.2

-- 
Ape <Lauri Niskanen>




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Updated syntax highlighting for highlight 3.6
  2011-11-04 23:02 [PATCH] Updated syntax highlighting for highlight 3.6 ape
@ 2012-01-14 16:27 ` ape
  2012-01-30 15:25   ` lockie666
  0 siblings, 1 reply; 3+ messages in thread
From: ape @ 2012-01-14 16:27 UTC (permalink / raw)


On 05/11/11 01:02, Lauri Niskanen wrote:
> Hello!
>
> The syntax highlighting filter in cgit doesn't work properly with the
> latest version of highlight. Some CSS class names have changed and there
> is no option -X. This patch fixes these issues.
>
>  From 50574f349b369bbd26b07f0a186c1476b9a9ecca Mon Sep 17 00:00:00 2001
> From: Lauri Niskanen <ape at ape3000.com>
> Date: Sat, 5 Nov 2011 00:57:48 +0200
> Subject: [PATCH] Updated syntax highlighting for highlight 3.6
>
> ---
> cgit.css | 7 ++++---
> filters/syntax-highlighting.sh | 9 +++++----
> 2 files changed, 9 insertions(+), 7 deletions(-)
>
> diff --git a/cgit.css b/cgit.css
> index 55afa94..253b495 100644
> --- a/cgit.css
> +++ b/cgit.css
> @@ -793,11 +793,12 @@ table.ssdiff td.space div {
> table.blob .num { color:#2928ff; }
> table.blob .esc { color:#ff00ff; }
> table.blob .str { color:#ff0000; }
> -table.blob .dstr { color:#818100; }
> +table.blob .pps { color:#818100; }
> table.blob .slc { color:#838183; font-style:italic; }
> table.blob .com { color:#838183; font-style:italic; }
> -table.blob .dir { color:#008200; }
> -table.blob .sym { color:#000000; }
> +table.blob .ppc { color:#008200; }
> +table.blob .opt { color:#000000; }
> +table.blob .lin { color:#555555; }
> table.blob .kwa { color:#000000; font-weight:bold; }
> table.blob .kwb { color:#830000; }
> table.blob .kwc { color:#000000; font-weight:bold; }
> diff --git a/filters/syntax-highlighting.sh
> b/filters/syntax-highlighting.sh
> index 6283ce9..e592a66 100755
> --- a/filters/syntax-highlighting.sh
> +++ b/filters/syntax-highlighting.sh
> @@ -14,11 +14,12 @@
> # table.blob .num { color:#2928ff; }
> # table.blob .esc { color:#ff00ff; }
> # table.blob .str { color:#ff0000; }
> -# table.blob .dstr { color:#818100; }
> +# table.blob .pps { color:#818100; }
> # table.blob .slc { color:#838183; font-style:italic; }
> # table.blob .com { color:#838183; font-style:italic; }
> -# table.blob .dir { color:#008200; }
> -# table.blob .sym { color:#000000; }
> +# table.blob .ppc { color:#008200; }
> +# table.blob .opt { color:#000000; }
> +# table.blob .lin { color:#555555; }
> # table.blob .kwa { color:#000000; font-weight:bold; }
> # table.blob .kwb { color:#830000; }
> # table.blob .kwc { color:#000000; font-weight:bold; }
> @@ -42,4 +43,4 @@ EXTENSION="${BASENAME##*.}"
> # map Makefile and Makefile.* to .mk
> [ "${BASENAME%%.*}" == "Makefile" ] && EXTENSION=mk
>
> -exec highlight --force -f -I -X -S $EXTENSION 2>/dev/null
> +exec highlight --force -f -I -S $EXTENSION 2>/dev/null

Does anybody have any comments about this patch?

-- 
Ape <Lauri Niskanen>




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Updated syntax highlighting for highlight 3.6
  2012-01-14 16:27 ` ape
@ 2012-01-30 15:25   ` lockie666
  0 siblings, 0 replies; 3+ messages in thread
From: lockie666 @ 2012-01-30 15:25 UTC (permalink / raw)


Lauri Niskanen <ape at ...> writes:

> Does anybody have any comments about this patch?

Kewl, it works & looks nice.







^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-30 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-04 23:02 [PATCH] Updated syntax highlighting for highlight 3.6 ape
2012-01-14 16:27 ` ape
2012-01-30 15:25   ` lockie666

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).