myTextView.setText(new HtmlBuilder(). open(HtmlBuilder.Type.BOLD). append("Some bold text "). close(HtmlBuilder.Type.BOLD). open(HtmlBuilder.Type.ITALIC). append("Some italic text"). close(HtmlBuilder.Type.ITALIC). build() );
String html = new HtmlBuilder() .startTag( "strong" ).append( "text" ).endTag( "strong" ) .toString();
public Preformat() { super("Preformat"); wikiMatcher(new Matcher().string("{{{")); wikiRule(this); htmlTranslation(new HtmlBuilder("pre").body(0)); }
public Preformat() { super("Preformat"); wikiMatcher(new Matcher().string("{{{")); wikiRule(this); htmlTranslation(new HtmlBuilder("pre").body(0)); }
public AnchorName() { super("AnchorName"); wikiMatcher(new Matcher().string("!anchor")); wikiRule(this); htmlTranslation(new HtmlBuilder("a").attribute("name", 0).body(-1, " ").inline()); }
public AnchorName() { super("AnchorName"); wikiMatcher(new Matcher().string("!anchor")); wikiRule(this); htmlTranslation(new HtmlBuilder("a").attribute("name", 0).body(-1, " ").inline()); }
public Path() { super("Path"); wikiMatcher(new Matcher().startLineOrCell().string("!path")); wikiRule(this); htmlTranslation(new HtmlBuilder("span").body(0, "classpath: ").attribute("class", "meta").inline()); }
public Path() { super("Path"); wikiMatcher(new Matcher().startLineOrCell().string("!path")); wikiRule(this); htmlTranslation(new HtmlBuilder("span").body(0, "classpath: ").attribute("class", "meta").inline()); }
public See() { super("See"); wikiMatcher(new Matcher().startLineOrCell().string("!see").whitespace()); wikiRule(this); htmlTranslation(new HtmlBuilder("b").body(0, "See: ").inline()); }
public See() { super("See"); wikiMatcher(new Matcher().startLineOrCell().string("!see").whitespace()); wikiRule(this); htmlTranslation(new HtmlBuilder("b").body(0, "See: ").inline()); }