List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH 1/2] Added trailing slash to directories
@ 2012-01-18 14:08 ape
  2012-01-18 14:08 ` [PATCH 2/2] Updated syntax highlighting for highlight 3.6 ape
  0 siblings, 1 reply; 2+ messages in thread
From: ape @ 2012-01-18 14:08 UTC (permalink / raw)


- This only affects the tree view
---
 ui-tree.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ui-tree.c b/ui-tree.c
index 442b6be..6428fec 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -158,6 +158,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
 		html_txt(name);
 		html("</a>");
 	} else if (S_ISDIR(mode)) {
+		name = strcat(name, "/");
 		cgit_tree_link(name, NULL, "ls-dir", ctx.qry.head,
 			       curr_rev, fullpath);
 	} else {
-- 
1.7.8.3





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

* [PATCH 2/2] Updated syntax highlighting for highlight 3.6
  2012-01-18 14:08 [PATCH 1/2] Added trailing slash to directories ape
@ 2012-01-18 14:08 ` ape
  0 siblings, 0 replies; 2+ messages in thread
From: ape @ 2012-01-18 14:08 UTC (permalink / raw)


---
 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.8.3





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

end of thread, other threads:[~2012-01-18 14:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-18 14:08 [PATCH 1/2] Added trailing slash to directories ape
2012-01-18 14:08 ` [PATCH 2/2] Updated syntax highlighting for highlight 3.6 ape

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).