logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

svn commit: r1292 - in trunk: . lib viewvc.org: msg#00020

Subject: svn commit: r1292 - in trunk: . lib viewvc.org
Author: rey4
Date: Tue Mar 21 14:47:11 2006
New Revision: 1292

Modified:
   trunk/INSTALL
   trunk/lib/config.py
   trunk/lib/viewvc.py
   trunk/viewvc.conf.dist
   trunk/viewvc.org/upgrading.html
Log:
Get rid of Highlight line number workaround. Highlight 2.4.5 came out
yesterday and fixes all the issues we had with line numbering. This change
also allows ViewVC to work with old versions of Highlight all the way back
to 2.2.10.

Also, remove "highlight_style" configuration option as suggested by
Andreas Amann (aamann) in issue 126.

* INSTALL
    document new version requirements
    
* lib/viewvc.py
  (MarkupHighlight.__init__):
    stop passing --style and --line-number-start options to highlight

* lib/config.py
* viewvc.conf.dist
* viewvc.org/upgrading.html
    remove "highlight_style" option


Modified: trunk/INSTALL
Url: 
http://viewvc.tigris.org/source/browse/viewvc/trunk/INSTALL?view=diff&rev=1292&p1=trunk/INSTALL&r1=1291&p2=trunk/INSTALL&r2=1292
==============================================================================
--- trunk/INSTALL       (original)
+++ trunk/INSTALL       Tue Mar 21 14:47:11 2006
@@ -44,8 +44,9 @@
           (http://sourceforge.net/projects/mysql-python)
       * Enscript, code colorizer
           (http://www.codento.com/people/mtr/genscript/)
-      * Highlight, code colorizer, 2.4.2 or later
-           http://www.andre-simon.de/
+      * Highlight, code colorizer, 2.2.10 or later required, 2.4.5 or
+        later recommended for reliable line numbering
+          (http://www.andre-simon.de/)
       * CvsGraph 1.5.0 or later, graphical CVS revision tree generator
           (http://www.akhphd.au.dk/~bertho/cvsgraph/)
 

Modified: trunk/lib/config.py
Url: 
http://viewvc.tigris.org/source/browse/viewvc/trunk/lib/config.py?view=diff&rev=1292&p1=trunk/lib/config.py&r1=1291&p2=trunk/lib/config.py&r2=1292
==============================================================================
--- trunk/lib/config.py (original)
+++ trunk/lib/config.py Tue Mar 21 14:47:11 2006
@@ -206,7 +206,6 @@
     self.options.enscript_path = ''
     self.options.use_highlight = 0
     self.options.highlight_path = ''
-    self.options.highlight_style = 'emacs'
     self.options.highlight_line_numbers = 1
     self.options.highlight_convert_tabs = 2
     self.options.use_php = 0

Modified: trunk/lib/viewvc.py
Url: 
http://viewvc.tigris.org/source/browse/viewvc/trunk/lib/viewvc.py?view=diff&rev=1292&p1=trunk/lib/viewvc.py&r1=1291&p2=trunk/lib/viewvc.py&r2=1292
==============================================================================
--- trunk/lib/viewvc.py (original)
+++ trunk/lib/viewvc.py Tue Mar 21 14:47:11 2006
@@ -1243,13 +1243,10 @@
     highlight_cmd = [os.path.normpath(os.path.join(cfg.options.highlight_path,
                                                    'highlight')),
                      '--syntax', ext, '--force',
-                     '--style', str(cfg.options.highlight_style),
                      '--anchors', '--fragment', '--xhtml']
 
     if cfg.options.highlight_line_numbers:
-      ### there doesn't seem to be any way to get highlight to add line
-      ### numbers for .txt files, it just ignores these options
-      highlight_cmd.extend(['--linenumbers', '--line-number-start', '1'])
+      highlight_cmd.extend(['--linenumbers'])
 
     if cfg.options.highlight_convert_tabs:
       highlight_cmd.extend(['--replace-tabs',

Modified: trunk/viewvc.conf.dist
Url: 
http://viewvc.tigris.org/source/browse/viewvc/trunk/viewvc.conf.dist?view=diff&rev=1292&p1=trunk/viewvc.conf.dist&r1=1291&p2=trunk/viewvc.conf.dist&r2=1292
==============================================================================
--- trunk/viewvc.conf.dist      (original)
+++ trunk/viewvc.conf.dist      Tue Mar 21 14:47:11 2006
@@ -444,9 +444,6 @@
 #
 # highlight_path = /usr/bin
 
-# what coloring style should highlight use?
-highlight_style = emacs
-
 # should we add line numbers?
 highlight_line_numbers = 1
 

Modified: trunk/viewvc.org/upgrading.html
Url: 
http://viewvc.tigris.org/source/browse/viewvc/trunk/viewvc.org/upgrading.html?view=diff&rev=1292&p1=trunk/viewvc.org/upgrading.html&r1=1291&p2=trunk/viewvc.org/upgrading.html&r2=1292
==============================================================================
--- trunk/viewvc.org/upgrading.html     (original)
+++ trunk/viewvc.org/upgrading.html     Tue Mar 21 14:47:11 2006
@@ -135,7 +135,6 @@
   <li>options/cross_copies</li>
   <li>options/use_highlight</li>
   <li>options/highlight_path</li>
-  <li>options/highlight_style</li>
   <li>options/highlight_line_numbers</li>
   <li>options/highlight_convert_tabs</li>
   <li>options/use_php</li>


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.firebase.por...    text.xml.xalan....    qnx.openqnx.dev...    user-groups.zar...    internationaliz...    kde.devel.konve...    finance.e-gold....    emacs.latex.pre...    gis.therion/200...    web.webmin.gene...    yellowdog.gener...    vserver/2003-08...    redhat.release....    sysutils.tivoli...    xfree86.expert/...    mail.becky.user...    hardware.netapp...    netbsd.ports.xe...    python.distutil...    boot-loaders.gr...    culture.interne...    java.springfram...    activedir/2006-...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe