Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / tools / json_schema_compiler / highlighters / none_highlighter.py
blobac1cc2b4b2684e32e28efb33da9c8b8a527a1391
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
3 # found in the LICENSE file.
5 import cgi
7 class NoneHighlighter(object):
8 """Highlighter that just wraps code in a <pre>.
9 """
10 def GetCSS(self, style):
11 return ''
13 def GetCodeElement(self, code, style):
14 return '<pre>' + cgi.escape(code) + '</pre>'
16 def DisplayName(self):
17 return 'none'
19 def GetStyles(self):
20 return []