I can try.
Could you tell me where are the following settings in MySQL database 
"reviewboard" so I can verify the setting is enabled in MySQL or not.
1. System setting => Diff Viewer settings => Show syntax highlighting  is 
checked.
2. Account settings " Enable syntax highlighting in the diff viewer" is 
checked.

Thanks,

Wesly

Christian Hammond於 2015年11月15日星期日 UTC-8上午12時00分55秒寫道:
>
> Right. What were you looking to do with this file? Are you comfortable 
> debugging Python web applications?
>
> Christian
>
> -- 
> Christian Hammond - [email protected] <javascript:>
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Sat, Nov 14, 2015 at 11:50 PM, Wesly Chen <[email protected] 
> <javascript:>> wrote:
>
>> On my review board system, it is in 
>> /usr/lib/python2.6/site-packages/ReviewBoard-2.0.20-py2.6.egg/reviewboard/diffviewer/chunk_generator.py
>>  
>>   (not in diffutils.py)
>> -------
>> (started with line 219) 
>>         if self._get_enable_syntax_highlighting(old, new, a, b):
>>             repository = self.filediff.diffset.repository
>>             tool = repository.get_scmtool()
>>             source_file = \
>>                 tool.normalize_path_for_display(self.filediff.source_file)
>>             dest_file = \
>>                 tool.normalize_path_for_display(self.filediff.dest_file)
>>
>>             try:
>>                 # TODO: Try to figure out the right lexer for these files
>>                 #       once instead of twice.
>>                 if not source_file.endswith(self.STYLED_EXT_BLACKLIST):
>>                     markup_a = self._apply_pygments(old or '', 
>> source_file)
>>
>>                 if not dest_file.endswith(self.STYLED_EXT_BLACKLIST):
>>                     markup_b = self._apply_pygments(new or '', dest_file)
>>             except:
>>                 pass
>> ...
>> (line 646)
>>     def _apply_pygments(self, data, filename):
>>         """Applies Pygments syntax-highlighting to a file's contents.
>>
>>         The resulting HTML will be returned as a list of lines.
>>         """
>>         lexer = get_lexer_for_filename(filename,
>>                                        stripnl=False,
>>                                        encoding='utf-8')
>>         lexer.add_filter('codetagify')
>>
>>         return split_line_endings(
>>             highlight(data, lexer, NoWrapperHtmlFormatter()))
>> -------------------
>>
>> Christian Hammond於 2015年11月14日星期六 UTC-8下午11時36分59秒寫道:
>>>
>>> It's in reviewboard/diffviewer/diffutils.py. Look for apply_pygments.
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond - [email protected]
>>> Review Board - https://www.reviewboard.org
>>> Beanbag, Inc. - https://www.beanbaginc.com
>>>
>>> On Sat, Nov 14, 2015 at 11:35 PM, Wesly Chen <[email protected]> wrote:
>>>
>>>> Could you point out which python files under 
>>>>
>>>> /usr/lib/python2.6/site-packages/ReviewBoard-2.0.20-py2.6.egg/reviewboard/ 
>>>> is showing the syntax highlighting in Diff Viewer?
>>>>
>>>> Thanks,
>>>>
>>>> Wesly 
>>>>
>>>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to