org.gwtbootstrap3.client.ui.base.helper
Class SourceCodeHelper

java.lang.Object
  extended by org.gwtbootstrap3.client.ui.base.helper.SourceCodeHelper

public final class SourceCodeHelper
extends Object

Author:
Sven Jacobs

Method Summary
static SafeHtml parseCode(String code)
          If source code contains "\n" it will be replaced by a <br> element and "\s" will be replaced by a whitespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseCode

public static SafeHtml parseCode(String code)
If source code contains "\n" it will be replaced by a <br> element and "\s" will be replaced by a whitespace.

Parameters:
code - Unformatted source code
Returns:
Formatted source code in HTML for use in Pre or Code


Copyright © 2015. All rights reserved.