Re: [viewvc-users] Highlight/Coloration Question
"C. Michael Pilato" <[email protected]> Mon, 10 Dec 2012 13:38:19 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <50C62C1B.4050702__5488.73665179617$1355164724$gmane$org@collab.net> |
On 12/05/2012 02:38 PM, Bertino, Tim wrote: > Hello All, > > I stood up a Fedora box running Rancid to capture backups of our network > devices and log the differences when they happen. I have the viewvc web > server up and running and it will show the diffs side by side, but I don’t > seem to get any highlight or coloration between them to right away show me > what is different between the configs. Listed below is what I have in the > Utilities and Options sections of my viewvc.conf: > > *_Utilities_* > rcs_dir = /usr/bin > > *_Options_* > allowed_views = annotate, diff, markup, roots > enable_syntax_colorization = 1 > use_cvs_graph = 1 > use_enscript = 1 > enscript_path = /usr/bin/ > use_highlight = 1 > highlight_path = /usr/bin > > Any help/direction will be greatly appreciated. Also, is there a good way > to export a version if I would need to use it as a backup so I wouldn’t have > to go in and delete all the line numbers? The syntax coloration option in ViewVC is for displaying the contents of files of certain recognizable types (C source files, Perl source files, shell scripts, etc.) with colorized text to denote various classes of information in those files (code comments, static strings, keywords, etc.). This feature is not currently implemented for ViewVC's diff views, but more importantly, is not the same thing as the colorized difference display you are describing. ViewVC's "Colored Diff" difference display type (and its peers, "Long Colored Diff" and the newer "Full Colored Diff") should show colored backgrounds in the side-by-side display to denote added, removed, and modified lines. If you need more precise (like, per-word or per-character) coloration of differences, you might want to experiment with the intraline diff feature by setting: hr_intraline = 1 in the "[options]" section of your viewvc.conf file. -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Enterprise Cloud Development ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3034610 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJQxiwbAAoJEPXg8AH+aBMzEjYP/3Kq01NAHC3+RrUN3HppSnWK pOkIE8tXo8S9Tj23r62K6qBD870oeZsTOj6aH8wHXiw8icM3toXOrcHRutGMNjs+ LQjO0nNwvn2n92fe00B2y9vUzMLX1XsyDHKFZl6OUUBiEJiiY/JLUMfTbbFCmK0U AqJuIYaQ48b9/f8bow0Wgge3lHnLXI34oaptMuXN9MxgaucHOUn7PmB07WgTs4B+ 8C7FbH9WK3ibFOLFHNv7hLRmh+inZUBhXJEBUD2H08dsU6GhJJR0xci4Rm/WQuC6 DF9FtjyEdIP4JhEhUV1yaLVLpeTLop0ZUNF04eQO1ERVigAcA2kQWTzk7VhMtyhI jmAjIdqRPHVmMUiqf7gO1troKlK15x9loqGRgu9P9WL2HwXJ/MMC9gMQfEhELaB7 j2a/Qmj4t5IwB4eY9asGUKzEIhPUwGddqRt07qi6KozFrJrZOk26TcEXp9ZHl8ux +bYFF2/E/jlNumkoscxmHLwcVbYDJP6JkrNRlyy/zwW19R1AOfCWG9jA6fz54kWL bfpSFSJr++WogTeAm/LHVA57LFm7p+TdhlHUpIMmalEcF+JsXr0zJ4DhNF5iTtPM kJVQXxVrhIdpwqLuGV+ntjW+r56cJAAdiyQO52s5RoZ+fi0lgnteGGUr4JXIf/xm zU/1HbWGNklyK/swXJlk =GuaZ -----END PGP SIGNATURE-----