I want to make a snippet that builds a whole website when I type something like “Computer pls make a website” but it seems that it doesnt work because the snippet is like 500 lines of code because when I decrease the lines to something like 20 it works fine. So is tthere anyway I can make a 500 line snippet work ?
Snippet too long
OdatNurd
#2
Can you provide the snippet that you tried that didn’t work? I just tested out a snippet containing over 5,500 lines of lorem ipsum text and that worked just fine.
1 Like
theangelm97
#3
here it is; (when I press tab the thing I write just dissapears without writing the code)
http://pastebin.com/gL2geyB5
0 Likes
OdatNurd
#4
The problem you’re having is that $ is special in snippets, and your JavaScript source includes some of them, so it’s messing things up. In order to use that character in the body of a snippet, you need to enter it as \$ instead of just $.
In your case, that is as simple as a global replace of $ with \$.
2 Likes