Re: [viewvc-users] behavior for files pygments can't parse

"C. Michael Pilato" <[email protected]> Tue, 08 Apr 2014 22:31:17 -0400
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <5344B0F5.6040604__40527.8724422262$1397010690$gmane$org@collab.net>
On 04/08/2014 07:22 PM, Will Yardley wrote:
> I figured out how to set the correct MIME type for files with no
> extensions. However, for filetypes that Pygments doesn't know about at
> all, unrecognized text is surrounded by a red box. Is there a way to
> make this behavior a little easier on the eye?

ViewVC asks Pygments to employ CSS for its output, and you can modify
the CSS style defs in the docroot/styles.css file inside your ViewVC
templates directory.  Looking at the default styles, I'm guessing your
text is getting marked up as an error:

.pygments-err { border: 1px solid #FF0000 } /* Error */

You should be able to just tweak that style to something that doesn't
cause your eyes to burn out of their sockets.

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

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

To unsubscribe from this discussion, e-mail: [[email protected]].