fbpx

 

Test Forum Code For...
 

Test Forum Code Formatting  

  RSS
kdub (Kerry)
(@kdub)
Mesozoic relic

Basic Text file
This was created bt pasting the code, highlighting it, then selecting the code tool [ <> ] from the menu

 

 

fileFormatVersion: 2
guid: 8ddbb03d7258b6647be23354132eade1
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

 

 
This topic was modified 3 weeks ago 3 times by kdub (Kerry)
Quote
Posted : 22/09/2019 11:11 pm
kdub (Kerry)
(@kdub)
Mesozoic relic

In this case I put in 3 lines of temporary text ... just a b c

then selected the text
then selected from the menu <>
Then pasted the code I wanted to post, overwriting the selected text.

Could someone please confirm this procedure ... does it work for others and is it the intended procedure.

 

    private void ControlSideTravel() {
paddlePos = transform.position;
paddlePos.x = Mathf.Clamp(Input.mousePosition.x / borderWidth, xMin, xMax);
transform.position = paddlePos;
}
This post was modified 3 weeks ago 3 times by kdub (Kerry)
ReplyQuote
Posted : 23/09/2019 7:41 am
kdub (Kerry)
(@kdub)
Mesozoic relic

I think I've seen the light. 

Click the 'Code' button on the menu [ <> ]

PRE will display in the botton left of the editor pane

Any code pasted while PRE is displayed will be formatted.  ? 

Regards,

Added:

It's an advantage to make a few blank lines while PRE is active and paste into that.

I've found that sometimes we need to select the pasted code and re-click the code button.

Regards,

This post was modified 2 weeks ago by kdub (Kerry)
ReplyQuote
Posted : 24/09/2019 2:52 am
Share:

 

 

Scroll to Top

Please Login or Register