Can someone explain to me why every time i write the code on notepad and open it, all the code get displayed on the browser | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can someone explain to me why every time i write the code on notepad and open it, all the code get displayed on the browser

code error

18th Aug 2017, 12:47 AM
Abdoul Newland
Abdoul Newland - avatar
5 Answers
+ 7
Because you probably assigned your browser as the default program to open files with a .txt extention. On windows happens when you right click and "open with..." and selecting the program without unchecking the lower check box. do the same selecting this time notepad. right click on the .txt file, "open with...", select notepad and make sure the lower checkbox is checked. If on android, upon opening the file you were requested which app to open it with, and you also selected "always". If this is the case reset default apps in the settings. edit: the default program to open .html files is usually a browser. If you want to edit an .html file just right click on it and "open with..." select notepad and uncheck the check box before clicking ok.
18th Aug 2017, 1:24 AM
seamiki
seamiki - avatar
+ 4
abdoul, can you post your code in your code section? you may be missing a tag or not closed a tag properly
18th Aug 2017, 1:12 AM
Daemo
Daemo - avatar
+ 3
@seamiki is right!!!
18th Aug 2017, 1:48 AM
Ubaid Siddiqui
Ubaid Siddiqui - avatar
+ 1
yea I saw the problem thanks guys
29th Nov 2017, 9:33 PM
Abdoul Newland
Abdoul Newland - avatar
0
yea I saw the problem thanks guys
29th Nov 2017, 9:33 PM
Abdoul Newland
Abdoul Newland - avatar