As of now Ninjatrader forum or the tags pairs can't restitute the original format and the code can be difficult to read with all the parenthesis and lines left aliened.
There is the other option to use an online or text editor C# beautifier but sometimes they adulterate the script and we get compile errors in the Ninjatrader Editor we must spend extra time figuring out how to solve before using the code, or and or they use the Java curly brackets style with all the leading brackets on the same lines of the initial snippets line, which we need to carriage return to get it as it original was (sometimes for a lot of them).
I found a workaround by chance today.
By pasting a script into a PHP tags pair in the Ninjatrader forum.
Then performing manual reformatting into the PHP tags.
Then by copying the manually formatted script from the PHP tags, and pasting into Sublime text editor.
Then By hitting Ctrl+H to find and replace.
I found out that the "whitespaces" from the manually formatted script showed this character hidden <0xa0> .
Can this character be added by default to the Ninjatrader forum editor when pasting to solve the previous problems?
Else (which is ok timewise but would be better to add 0xa0 to the editor) we have to find and replace all whitespaces with <0xa0> each time to get the same result. Thanks!
Comment