Connexion | Inscription | FAQ
Anonymous

Issues with Notepad++

+ Publier une réponse

3 messages Page 1 sur 1


Issues with Notepad++

par matatat » Mer Nov 15, 2017 6:21 pm

I'm completely new to coding and have literally just started.

I created a HTML test page in Notepad++ and ran it with Chrome via the built-in feature (it's the shortcut ctrl+alt+shift+r). The page just displays as the HTML code, rather than the result it should be.

I'll paste what I've done so far:

Code: Tout sélectionner
<!DOCTYPE html>
<html>
   <head>
      <title>This is a test!</title>
   </head>
   <body>
      <p>Hello there. Click <a href="google.co.uk">this!</a></p>
   </body>
</html>


Can anyone see what's wrong?
Thank you
Avatar de l’utilisateur

matatat

  • Messages: 1
  • Inscrit le: Mer Nov 15, 2017 6:17 pm

Re: Issues with Notepad++

par nanoverso » Mer Nov 15, 2017 11:20 pm

Looks like this is not the correct way of opening a html file in Chrome, try: "Ctrl+O" - Open a file in the browser.
Avatar de l’utilisateur

nanoverso

  • Messages: 253
  • Inscrit le: Sam Mai 10, 2014 12:08 am
  • Localisation: Brazil
--
Free VST Plugins Download.

Re: Issues with Notepad++

par johnthan » Mar Nov 21, 2017 1:19 pm

Working on notepad or notepad++, you should save the file in html.

Whatever you write in notepad it saves as a text file. (filename.txt)
Here you need to save the same file in html like. (filename.html) Just put (.html) with your file name to be able to see it on any browser.

So, whenever you visit the file it will open in the browser as html file. To edit it you can anytime open it in text editor. Just right click and open it with notepad++ or notepad. And always save it as html file.
Avatar de l’utilisateur

johnthan

  • Messages: 5
  • Inscrit le: Mar Nov 21, 2017 1:03 pm


+ Publier une réponse

Page 1 sur 1