hudson.markup
Class RawHtmlMarkupFormatter

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<MarkupFormatter>
      extended by hudson.markup.MarkupFormatter
          extended by hudson.markup.RawHtmlMarkupFormatter
All Implemented Interfaces:
ExtensionPoint, Describable<MarkupFormatter>

public class RawHtmlMarkupFormatter
extends MarkupFormatter

MarkupFormatter that treats the input as the raw html. This is the backward compatible behaviour.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class RawHtmlMarkupFormatter.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static MarkupFormatter INSTANCE
           
 
Constructor Summary
RawHtmlMarkupFormatter(boolean disableSyntaxHighlighting)
           
 
Method Summary
 String getCodeMirrorConfig()
           
 String getCodeMirrorMode()
           
 boolean isDisableSyntaxHighlighting()
           
 void translate(String markup, Writer output)
          Given the text, converts that to HTML according to whatever markup rules implicit in the implementation class.
 
Methods inherited from class hudson.markup.MarkupFormatter
doPreviewDescription, getDescriptor, getHelpUrl, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final MarkupFormatter INSTANCE
Constructor Detail

RawHtmlMarkupFormatter

@DataBoundConstructor
public RawHtmlMarkupFormatter(boolean disableSyntaxHighlighting)
Method Detail

isDisableSyntaxHighlighting

public boolean isDisableSyntaxHighlighting()

translate

public void translate(String markup,
                      Writer output)
               throws IOException
Description copied from class: MarkupFormatter
Given the text, converts that to HTML according to whatever markup rules implicit in the implementation class.

Multiple threads can call this method concurrently with different inputs.

Specified by:
translate in class MarkupFormatter
output - Formatted HTML should be sent to this output.
Throws:
IOException

getCodeMirrorMode

public String getCodeMirrorMode()

getCodeMirrorConfig

public String getCodeMirrorConfig()


Copyright © 2004-2013. All Rights Reserved.