nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
highlight: move hightlightcode inside HighlightVisitor
[nit.git]
/
src
/
examples
/
nitlight_as_a_service.nit
diff --git
a/src/examples/nitlight_as_a_service.nit
b/src/examples/nitlight_as_a_service.nit
index
103a3c8
..
cf72574
100644
(file)
--- a/
src/examples/nitlight_as_a_service.nit
+++ b/
src/examples/nitlight_as_a_service.nit
@@
-24,7
+24,7
@@
import nitcorn::log
import template
import json::serialization_write
import template
import json::serialization_write
-# Nitcorn service to hightlight code
+# Nitcorn service to highlight code
#
# It's a single stand-alone page that has to form to itself.
class HighlightAction
#
# It's a single stand-alone page that has to form to itself.
class HighlightAction
@@
-38,7
+38,7
@@
class HighlightAction
# There is code? Process it
var code = http_request.post_args.get_or_null("code")
var hlcode = null
# There is code? Process it
var code = http_request.post_args.get_or_null("code")
var hlcode = null
- if code != null then hlcode = hightlightcode(hl, code)
+ if code != null then hlcode = hl.highlightcode(code)
if http_request.post_args.get_or_null("json") == "true" and hlcode != null then
var response = new HttpResponse(200)
if http_request.post_args.get_or_null("json") == "true" and hlcode != null then
var response = new HttpResponse(200)