answered
2017-04-15 17:36:19 +0200
Inserting code here on TJC; yep, it doesn't always work and needs a little manual adjustment, plus if you are using a PC, you can see a preview below where you're typing.
So, drop a line, then click on the '101010' icon above to insert some code;
The 'enter code here' message shows, highlighted in blue. place your cursor over the blue highlight, right click and paste your code;
WeatherLoader {
id: weatherWidget
width: lockScreen.width
active: true; enabled: true
anchors {
bottom: parent.bottom
bottomMargin: Theme.paddingLarge
horizontalCenter: parent.horizontalCenter
}
}
Drop another line here to 'move away' from your pasted code and it should look like the above. If it still isn't working, try moving each line in by one or two spaces, keep an eye on the preview below your text box, then you can see if formatting is working.
Have a look at this image, this is a screengrab of me actually creating this post, note the positioning and indent/alignment of the code, this can have the wrong effect on your text;