ScintillaNET
ScintillaNET copied to clipboard
WPF default text mutli-line
Hi,
I am trying to set my default text to the following:
// Syntax
// CONFIG
name: [machineName]
I have used the following XML:
<WindowsFormsHost x:Name="codeEditorHost" HorizontalAlignment="Left" Height="240" Margin="34,149,0,0" VerticalAlignment="Top" Width="448">
<scintilla:Scintilla x:Name="codeEditor" TextChanged="codeEditor_TextChanged" CaretPeriod="600" BorderStyle="None" Dock="Fill" HScrollBar="false" TabIndex="1"
Text="// Syntax
//CONFIG
name: [machineName]">
</scintilla:Scintilla>
</WindowsFormsHost>
However instead of the intended result (each line is on a new line) they're all placed on one line with tabs separating them like this
// Syntax //CONFIG name: [machineName]
Any ideas on how to get them to go onto new lines instead
I've tried putting \n and \r in front of them but this has not worked
Any help is greatly appreciated