Highlight's use of different "themes" is accomplished by having different
theme definition files (mine are in /usr/share/highlight/themes/) which say
"for the given class of marked-up region, use such-and-such color". The
actual name of the classes doesn't change across themes -- only the data
that maps class names to colors.
When integrated into ViewVC, it doesn't make any sense to use various
highlight themes because ViewVC's styles.css CSS file provides the mappings
of classes to colors.
So, that's my long way of saying, "No, you can't." If there's a particular
theme whose colors you like, simply copy that themes definitions into
ViewVC's templates/docroot/styles.css file (in the region beneath the
comment which reads "/*** Highlight Markup Styles ***/"
Douglas Rohm wrote:
> Michael,
> Thanks for the reply. Can I tell Highlight which style to use though?
> Highlight comes with 39 different themes out of the box. I'd like to be
> able to tell Highlight which one to use just like you can via the cmd
> prompt. Is possible?
>
> Also, I don't have a 'template/docroot/style.css'. The directory
> structure for Highlight 2.4.8 is 'themes/xxx.style'.
>
> Doug
>
> On Sat, 12 May 2007 14:28:09 -0700, "C. Michael Pilato"
> <cmpilato@xxxxxxxxxx> said:
>> Douglas Rohm wrote:
>>> I'm currently running viewvc 1.04 with highlight and its working fine.
>>> Does anyone know how to get Highlight to use a different color theme
>>> instead of the default?
>> The colors that 'highlight' is using are abstracted into CSS class
>> definitions. You can edit templates/docroot/style.css to tweak these
>> colors.
>>
>> --
>> C. Michael Pilato <cmpilato@xxxxxxxxxx>
>> CollabNet <> www.collab.net <> Distributed Development On Demand
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxxx
>
--
C. Michael Pilato <cmpilato@xxxxxxxxxx>
CollabNet <> www.collab.net <> Distributed Development On Demand
|
|