The following example saves styled text displayed in a TextArea as a series of StyleRuns that are appended to one another.
Of course, the easier way to update styled text in a TextArea is to make your changes using the StyledText methods instead of the StyleRun properties. If you want to operate on a StyleRun, you must remove the old run and replace it with the new run. If you are displaying the styled text in a TextArea, changes to a StyleRun's properties are not reflected in the TextArea. The Range class gives you access to the StyleRun's start position, length, and end position. You can get the starting and ending character positions (and, therefore, the length) of a StyleRun via the StyleRunRange method. You can get the total number of StyleRuns via the StyleRunCount method of the StyledText class and reference a StyleRun via the StyleRun method. The Text property of a StyledText object is a series of StyleRuns. PropertiesĪ StyleRun is a series of consecutive characters that have the same style attributes, as indicated by the StyleRun's properties. There are additional advanced options available for syntax highlighting, such as highlighting lines or adding line numbers.Used to manage a style run within StyledText. The following language strings are currently recognized: 4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch xbasic xml xojo xorg_conf xpp yaml z80 zxbasic * simply displays "Hello World!" to the standard output. * The HelloWorldApp class implements an application that
The syntax uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. It uses the GeSHi Generic Syntax Highlighter – so any language supported by GeSHi is supported. You should use forced newlines only if really needed.ĭokuWiki can highlight sourcecode, which makes it easier to read. Or followed by\\ a whitespace \\this happens without it. Two backslashes are only recognized at the end of a line\\ This is some text with some linebreaks\\ Note that the Two backslashes are only recognized at the end of a line If you want to force a newline without a paragraph, you can use two backslashes followed by a whitespace or the end of line. You can mark something as deleted as well. You can use subscript and superscript, too. Of course you can **_//''combine''//_** all these. Of course you can combine all these.ĭokuWiki supports **bold**, //italic//, _underlined_ and ''monospaced'' texts. DokuWiki supports bold, italic, underlined and monospaced texts.