gtk-doc r643 - trunk



Author: stefkost
Date: Mon Jan 12 07:24:20 2009
New Revision: 643
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=643&view=rev

Log:
	* gtkdoc-fixxref.in:
	  Make highligher post processing conditional.



Modified:
   trunk/ChangeLog
   trunk/gtkdoc-fixxref.in

Modified: trunk/gtkdoc-fixxref.in
==============================================================================
--- trunk/gtkdoc-fixxref.in	(original)
+++ trunk/gtkdoc-fixxref.in	Mon Jan 12 07:24:20 2009
@@ -297,8 +297,13 @@
     
     # format source
     my $highlighted_source=` HIGHLIGHT@ @HIGHLIGHT_OPTIONS $temp_source_file`;
-    $highlighted_source =~ s%^<\!-- .*? -->%%gs;
-    $highlighted_source =~ s%<pre><tt>(.*?)</tt></pre>%$1%gs;
+    if ("@HIGHLIGHT@" =~ m%/source-highlight%) {
+        $highlighted_source =~ s%^<\!-- .*? -->%%gs;
+        $highlighted_source =~ s%<pre><tt>(.*?)</tt></pre>%$1%gs;
+    }
+    elsif ("@HIGHLIGHT@" =~ m%/highlight%) {
+        # need to rewrite the stylesheet classes
+    }
     # revert double entity replacement
     $highlighted_source =~ s/&amp;lt;/&lt;/g;
     $highlighted_source =~ s/&amp;gt;/&gt;/g;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]