From 0d59a3936c5d4c984ee56867cc52996ba77778b9 Mon Sep 17 00:00:00 2001 From: Slim Amamou Date: Wed, 13 Feb 2008 19:56:32 +0100 Subject: [PATCH] les commentaires dans l'historique sont en gras --- bazdig/bazdig.css | 5 +++++ bazdig/history/index.php | 2 +- lib/code.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bazdig/bazdig.css b/bazdig/bazdig.css index 395b92c..b2e767d 100644 --- a/bazdig/bazdig.css +++ b/bazdig/bazdig.css @@ -42,6 +42,11 @@ h3 { #queries pre:hover { background-color: yellow; } +#queries i { + color: black; + font-weight: bold; + font-style: normal; +} #ok { width: 100% } diff --git a/bazdig/history/index.php b/bazdig/history/index.php index 9a4df2d..1f5b8bc 100644 --- a/bazdig/history/index.php +++ b/bazdig/history/index.php @@ -16,8 +16,8 @@ } ?> bazdig history - +
diff --git a/lib/code.php b/lib/code.php index 04edf7d..3bf2ba5 100644 --- a/lib/code.php +++ b/lib/code.php @@ -129,7 +129,7 @@ $html = preg_replace("/\b(add|after|aggregate|alias|all|and|as|authorization|between|by|cascade|cache|cache|called|case|check|column|comment|constraint|createdb|createuser|cycle|database|default|deferrable|deferred|diagnostics|distinct|domain|each|else|elseif|elsif|encrypted|except|exception|for|foreign|from|from|full|function|get|group|having|if|immediate|immutable|in|increment|initially|increment|index|inherits|inner|input|intersect|into|invoker|is|join|key|language|left|like|limit|local|loop|match|maxvalue|minvalue|natural|nextval|no|nocreatedb|nocreateuser|not|null|of|offset|oids|on|only|operator|or|order|outer|owner|partial|password|perform|plpgsql|primary|record|references|replace|restrict|return|returns|right|row|rule|schema|security|sequence|session|sql|stable|statistics|table|temp|temporary|then|time|to|transaction|trigger|type|unencrypted|union|unique|user|using|valid|value|values|view|volatile|when|where|with|without|zone)\b/i", '$1', $html); $html = preg_replace("/\b(bigint|bigserial|bit|boolean|box|bytea|char|character|cidr|circle|date|decimal|double|float4|float8|inet|int2|int4|int8|integer|interval|line|lseg|macaddr|money|numeric|oid|path|point|polygon|precision|real|refcursor|serial|serial4|serial8|smallint|text|timestamp|varbit|varchar)\b/i", '$1', $html); $html = preg_replace("/\b(abort|alter|analyze|begin|checkpoint|close|cluster|comment|commit|copy|create|deallocate|declare|delete|drop|end|execute|explain|fetch|grant|insert|listen|load|lock|move|notify|prepare|reindex|reset|restart|revoke|rollback|select|set|show|start|truncate|unlisten|update)\b/", '$1', $html); - $html = preg_replace("/([^:]|^)\-\-(.*?)(--$2$3', $html); + $html = preg_replace('/\-\-([^\n]*\n)/', '--$1', $html); return $html; } } -- 2.11.4.GIT