When quoting someone, how do I make their text appear in my reply

Is there a way to make it appear automatically? I’ve seen that in some Discourse forums this happens automatically, how do they do it? They just click on reply and the quote already appears.