[viewvc-users] help needed for syntax highlighting

chella moneycome <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <[email protected]>
Hi there,

Coudl you please take a look and advise

Looks like syntax highlighting is working for some files, please refer
attached Contents of Makefile (2.jpg) , test.xml (4.jpg) and zTest.sh
(5.jpg), and not for some files.


*test.c*


Could see the below line in /etc/httpd/conf/mime.types



text/x-c                                        c cc cxx cpp h hh dic


and below lines in /usr/share/enscript/hl/enscript.st

namerules
{
  /\.(c|h)$/                                    c;
~
~
}

startrules
{
  /.\010.\010.\010./                                    nroff;
  /-\*- [Cc] -\*-/                                      c;
~
~
}
but the MIME type is text/plain in viewVC for .c files. Please refer
attached Contents of test.c (3.jpg)



For *README* (file with no extentsion) could see the below error.
An Exception Has Occurred Python Traceback

Traceback (most recent call last):

  File "/usr/local/viewvc-1.1.3/lib/viewvc.py", line 4315, in main

    request.run_viewvc()

  File "/usr/local/viewvc-1.1.3/lib/viewvc.py", line 398, in run_viewvc

    self.view_func(self)

  File "/usr/local/viewvc-1.1.3/lib/viewvc.py", line 1766, in view_markup

    markup_or_annotate(request, 0)

  File "/usr/local/viewvc-1.1.3/lib/viewvc.py", line 1699, in markup_or_annotate

    path[-1], mime_type)

  File "/usr/local/viewvc-1.1.3/lib/viewvc.py", line 1534, in
markup_stream_pygments

    stripnl=False)

  File "/usr/local/lib/python2.6/dist-packages/Pygments-1.2.2-py2.6.egg/pygments/lexers/__init__.py",
line 124, in get_lexer_for_filename

    raise ClassNotFound('no lexer for filename %r found' % _fn)

ClassNotFound: no lexer for filename 'README' found





Kindly let me know if I am not clear and need more information, thanks.

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2450637

To unsubscribe from this discussion, e-mail: [[email protected]].
1.jpg (image/jpeg, 21.7 KB) - not displayed
2.jpg (image/jpeg, 84.1 KB) - not displayed
3.jpg (image/jpeg, 46.1 KB) - not displayed
4.jpg (image/jpeg, 33.8 KB) - not displayed
5.jpg (image/jpeg, 37.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.