This is my first time wrestling with the sublime API and trying to create my first commands, so excuso my utter ignorance.
I’m browsing the API reference but I don’t see so far anything that allows me to do the following:
A) get all the text in the buffer as a string and store it in a variable
B) get all the text in the buffer line by line and store it as an array of strings in a variable.
What is the best idiom to achieve this? Thank you in advance