Form Feed
"Living in your headWithout anything to numb you"
So, I guess we need to know why there's a new name.
An 'escape character', is, as I'm sure you've probably guessed, a programming term. In every programming language that I have come across, and probably most that exist, there's at least one definite problem they all suffer from: Every piece of code has to be written in plain text. But what if your code is dealing with text itself (say, if you want to print something)? How does the computer differentiate between your programming code and the text that the code is dealing with?
Well, one solution is to keep the text part in quotes. For instance, to assign a string of characters to a variable in C, you have to do the following:
char[] c = "This is my string.";
Notice the quotes? But then another problem comes up. What if the string you're dealing with has quotes in it? You end up with something like this:
char[] c = "And so she was like, "Pshaw."";
Now the computer gets confused. Which quotes is it supposed to pay attention to? Are you trying to assign two strings to a single variable? The computer isn't that crafty. So how do we tell the computer that we want quotes in our string, but still use quotes to define the string? The simple answer: escape characters. If we put a in front of the quotations, like so:
char[] c = "And so she was like, "Pshaw."";
...then the computer, when its processing the string, gets told that "Hey, the next character is somehow special."
I say 'special' because you can 'escape' more than just the quote character. For instance " " stands for a new line, " " stands for a tab, "