gtk-doc r681 - trunk
- From: stefkost svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-doc r681 - trunk
- Date: Sat, 21 Feb 2009 13:01:30 +0000 (UTC)
Author: stefkost
Date: Sat Feb 21 13:01:30 2009
New Revision: 681
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=681&view=rev
Log:
* configure.in:
* gtkdoc-fixxref.in:
Fix params and running of 'highlight'.
Modified:
trunk/ChangeLog
trunk/configure.in
trunk/gtkdoc-fixxref.in
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Sat Feb 21 13:01:30 2009
@@ -90,7 +90,7 @@
else
AC_PATH_PROG([HIGHLIGHT], [highlight])
if test -n "$HIGHLIGHT"; then
- HIGHLIGHT_OPTIONS="-X -f"
+ HIGHLIGHT_OPTIONS="-X -f -Ggtkdoc "
fi
fi
AC_SUBST([HIGHLIGHT_OPTIONS])
Modified: trunk/gtkdoc-fixxref.in
==============================================================================
--- trunk/gtkdoc-fixxref.in (original)
+++ trunk/gtkdoc-fixxref.in Sat Feb 21 13:01:30 2009
@@ -305,27 +305,30 @@
$source =~ s/&/&/g;
# write source to a temp file
- my $temp_source_file="$MODULE_DIR/_temp_src.$$";
+ # FIXME: use .c for now to hint the language to the highlighter
+ my $temp_source_file="$MODULE_DIR/_temp_src.$$.c";
open (NEWFILE, ">$temp_source_file") || die "Can't open $temp_source_file: $!";
print NEWFILE $source;
close (NEWFILE);
+ #print" running @HIGHLIGHT@ @HIGHLIGHT_OPTIONS $temp_source_file \n";
+
# format source
my $highlighted_source=` HIGHLIGHT@ @HIGHLIGHT_OPTIONS $temp_source_file`;
- if ("@HIGHLIGHT@" =~ m%/source-highlight%) {
+ if ("@HIGHLIGHT@" =~ m%/source-highlight$%) {
$highlighted_source =~ s%^<\!-- .*? -->%%gs;
$highlighted_source =~ s%<pre><tt>(.*?)</tt></pre>%$1%gs;
}
- elsif ("@HIGHLIGHT@" =~ m%/highlight%) {
+ elsif ("@HIGHLIGHT@" =~ m%/highlight$%) {
# need to rewrite the stylesheet classes
- $highlighted_source =~ s%<span class="com">%<span class="comment">%gs;
- $highlighted_source =~ s%<span class="dir">%<span class="preproc">%gs;
- $highlighted_source =~ s%<span class="kwd">%<span class="function">%gs;
- $highlighted_source =~ s%<span class="kwa">%<span class="keyword">%gs;
- $highlighted_source =~ s%<span class="line">%<span class="linenum">%gs;
- $highlighted_source =~ s%<span class="num">%<span class="number">%gs;
- $highlighted_source =~ s%<span class="str">%<span class="string">%gs;
- $highlighted_source =~ s%<span class="sym">%<span class="symbol">%gs;
+ $highlighted_source =~ s%<span class="gtkdoc com">%<span class="comment">%gs;
+ $highlighted_source =~ s%<span class="gtkdoc dir">%<span class="preproc">%gs;
+ $highlighted_source =~ s%<span class="gtkdoc kwd">%<span class="function">%gs;
+ $highlighted_source =~ s%<span class="gtkdoc kwa">%<span class="keyword">%gs;
+ $highlighted_source =~ s%<span class="gtkdoc line">%<span class="linenum">%gs;
+ $highlighted_source =~ s%<span class="gtkdoc num">%<span class="number">%gs;
+ $highlighted_source =~ s%<span class="gtkdoc str">%<span class="string">%gs;
+ $highlighted_source =~ s%<span class="gtkdoc sym">%<span class="symbol">%gs;
# maybe also do
# $highlighted_source =~ s%</span>(.+)<span%</span><span class="normal">$1</span><span%gs;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]