Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: tools/json_schema_compiler/highlighters/none_highlighter.py

Issue 682493002: Remove the dependency on json schema compiler. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 import cgi
6
7 class NoneHighlighter(object):
8 """Highlighter that just wraps code in a <pre>.
9 """
10 def GetCSS(self, style):
11 return ''
12
13 def GetCodeElement(self, code, style):
14 return '<pre>' + cgi.escape(code) + '</pre>'
15
16 def DisplayName(self):
17 return 'none'
18
19 def GetStyles(self):
20 return []
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698