The code blocks on this forum give weird output every now and then.
Specifically, multi-line code is rendered as a single line, which makes the code completely useless.
From personal experience, this happens when one or both of the opening/closing code blocks is on he same line as the actual code.
I cannot say his problem is perfectly producible. It probably would have been fixed by now if it was. It seems to happens sometimes, perhaps because some characters are or are not included and interfere with proper rendering.
A recent example can be seen in post #5 here: https://www.statalist.org/forums/for...ments-for-date
I've experienced this myself plenty of times, and I have seen code of other members mangled like this, including from some members with plenty of experience on here.
My personal experience is that it never happens if you put opening and closing code blocks on separate lines, i.e.:
{CODE}
some code
{/CODE}
I would appreciate if this behavior could be fixed, or alternatively, if pressing # would not result in
{CODE}{/CODE}
but instead would result in
{CODE}
{/CODE}
being written in the textbox.
I'd be happy if anyone could suggest if maybe there is some error on the user side that makes this happen (and how to prevent).
If other members have noticed the same, please do also comment. If I'm not he only one that bumps into this every now and then maybe a forum admin might look into this.
Related Posts with Code blocks on this forum need fixing
Rank Variable for Income, then further for regionHi, I am fairly new to this forum so please excuse me if I do not follow some guidelines I am not aw…
Question about probability weights and number of observationsHello Stata users, I am performing a cosinor analysis on seasonal iodine dispersion. To do this, I …
Regress individual and collective indicatorsHello STATA community! In my research I analyse how economy shapes public opinion (of social classes…
regular expression to extract a part of a string variableDear Statalist Suppose I have a string variable Name that is formatted as Text1 (Text2) (Text3), ho…
Return Calculation for Panel DataDear Statalists, I am trying to calculate monthly returns for specific firms and would like to know …
Subscribe to:
Post Comments (Atom)
0 Response to Code blocks on this forum need fixing
Post a Comment