Change comment:
Huh, no support for velocity syntax highlighting
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 3 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -100,7 +100,7 @@ 100 100 101 101 This means that the following script will generate a different result: 102 102 103 -{{code language=" velocity"}}103 +{{code language="none"}} 104 104 #set($s = 'abc') 105 105 $s 106 106 #set($s = $util.null) ... ... @@ -124,7 +124,7 @@ 124 124 Since ##null != ''## in Velocity, now a different branch will be executed. The following rewrites work. 125 125 126 126 Works in both modes, with or without null allowed: 127 -{{code language=" velocity"}}127 +{{code language="none"}} 128 128 #set($var = '') 129 129 #set($var = $xwiki.methodThatMightReturnNull()) 130 130 #if("$!var" != '') ... ... @@ -135,7 +135,7 @@ 135 135 {{/code}} 136 136 137 137 Works only in the new mode, with null allowed, but is shorter, slightly faster, and more familiar for java developers: 138 -{{code language=" velocity"}}138 +{{code language="none"}} 139 139 #set($var = $xwiki.methodThatMightReturnNull()) 140 140 #if($!var != $util.null) 141 141 The method succeeded
- trash1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Sergiu - Size
-
... ... @@ -1,0 +1,1 @@ 1 +24.3 KB - Content
- trash2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Sergiu - Size
-
... ... @@ -1,0 +1,1 @@ 1 +42.1 KB - Content
- trash3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Sergiu - Size
-
... ... @@ -1,0 +1,1 @@ 1 +29.8 KB - Content