For authors, syntax highlighting is turned on now so please make use of it. Super simple to use:
to turn on highlighting for a section use an opening PRE tag with an attribute of lang=”java” as an example. make sure to close the tag with a /PRE at the end of the code.
Example:
/** * builds a MD5 hash for the input string * @param hashMe the string to hash * @return MD5 hash converted to string */ public static String getMD5String(String hashMe) { log.debug("Request for MD5 of string [" + hashMe+"]"); if (hashMe == null) { return null; } try { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(hashMe.getBytes()); byte[] result = md.digest(); String retval = getHexString(result); log.debug("returning MD5 is " + retval); return retval; } catch (NoSuchAlgorithmException ex) { log.error(ex.getMessage(),ex); return null; } }
that easy.