| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import cgi | 5 import cgi |
| 6 | 6 |
| 7 class NoneHighlighter(object): | 7 class NoneHighlighter(object): |
| 8 """Highlighter that just wraps code in a <pre>. | 8 """Highlighter that just wraps code in a <pre>. |
| 9 """ | 9 """ |
| 10 def GetCSS(self, style): | 10 def GetCSS(self, style): |
| 11 return '' | 11 return '' |
| 12 | 12 |
| 13 def GetCodeElement(self, code, style): | 13 def GetCodeElement(self, code, style): |
| 14 return '<pre>' + cgi.escape(code) + '</pre>' | 14 return '<pre>' + cgi.escape(code) + '</pre>' |
| 15 | 15 |
| 16 def DisplayName(self): | 16 def DisplayName(self): |
| 17 return 'none' | 17 return 'none' |
| 18 | 18 |
| 19 def GetStyles(self): | 19 def GetStyles(self): |
| 20 return [] | 20 return [] |
| OLD | NEW |