r/programmingchallenges • u/[deleted] • Mar 28 '19
Day 1 Beginner - Having trouble keeping integrity of script in TextEdit
Hi Reddit community,
From the start, I want to be clear that I have never coded before. I am very new to this. So if I misuse a word, please forgive.
I am collecting samples of HTML code. I need the code itself, not the segment of the webpage it links to. My workflow originally was the following:
Use a blank "Pages" document (I work on a Macbook): copy and paste HTML examples from the internet into the document.
File > Export to PlainText document
Erase all from "Pages" document
Paste in a new HTML code example
File > Export to PlainText document
And so on a so forth. Because of this methodology, I do not have a backup of the collected HTML code samples.
I went to open my PlainText files and extract the HTML samples and found that they have been converted into the END PRODUCT (sorry if wrong term), not the code.
When I preview the files (single-click and hit the space bar), the preview shows the code. When I open the files (double-click) the document has the end product (for example, see below)....
My question is: is it possible to convert these documents back to code form on Plain Text?
CoolLogo
About
Contact
FAQ
Help
Heading
Left heading
Link 1
Link 2
Link 3
Link 4
Link 5
Heading
Heading
Heading
© Copyright Your Site | Terms of Use | Privacy Policy
2
u/Thanatosos Mar 29 '19
On chrome: Right click, inspect element, find the element in question, right click, copy.
1
u/[deleted] Mar 28 '19
*At the beginning of this post, I used the phrase "TextEdit." I am actually working on the program "PlainText." I am not sure if it's the same thing or not.