- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for formatCode (0.07 seconds)
-
src/main/webapp/WEB-INF/fe.tld
</function> <function> <description>Format a content as code.</description> <name>formatCode</name> <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.lang.String formatCode(java.lang.String, java.lang.String, java.lang.String, java.lang.String)</function-signature>
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Jan 18 11:38:54 GMT 2025 - 10.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/taglib/FessFunctionsTest.java
code = ""; value = FessFunctions.formatCode("L", "prettyprint", "text/plain", code); assertEquals("<pre class=\"prettyprint\"></pre>", value); code = "aaa"; value = FessFunctions.formatCode("L", "prettyprint", "text/plain", code); assertEquals("<pre class=\"prettyprint\">aaa</pre>", value); code = "aaa\nbbb"; value = FessFunctions.formatCode("L", "prettyprint", "text/plain", code);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/taglib/FessFunctions.java
* @param mimetype the MIME type of the content (currently unused) * @param input the code content to format * @return HTML formatted code with line numbers and styling */ public static String formatCode(final String prefix, final String style, final String mimetype, final String input) { if (input == null) { return StringUtil.EMPTY; }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 25.4K bytes - Click Count (1)