Indentation?
-
A simple question from someone just starting out.
I've understood this language uses indentation to determine if code belongs to a if or loop statement and not enclosing tags. But I haven't found any documentation on what indentation that is expected?
Is it very strict like YAML and require a fixed (2 spaces) length or good with "anything", like a single tab or even 10 spaces as long as it's consistent? -
@Reine I think it works with anything consistent. I've used either two spaces or four spaces in most of my code. It does also work with tabs.
-
@achrn thank you for replying. Yeah it seams to works with two, just wanted to be sure.
-
@Reine that's correct, the amount of indentation doesn't matter. In the event that you use both spaces and tabs for indentation (which is never a good idea), RRF warns you about it and assumes a tab stop every 4 spaces.