- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for formatCode (0.07 seconds)
-
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)