How to fix"Open browser failed!! Please "in vscode - html

I recently meet a awful problem in vscode with my html code,i used open-in-browser extension. And "Open browser failed!! Please check if you have installed the browser chrome correctly!" appeared ,i have tried many ways and i still can't solve it. I tried to change the user setting and workspacesettings,but nothing works.
I really want to solve this problem
Thank.

Use View In Browser. It definitely works, and as for the theme, you can always get a similar one, there are thousands of them. ViewInBrowser can be put on a keyboard shortcut by going into the settings, and so It can be very easy to open your file. I use Sublime, not Vscode, so I don't know exactly how to fix that particular issue. You might make sure it is configured for that browser, and make sure you have compatibility with your version of the browser.

Related

Confused HTML beginner here

so I've recently started learning web development and I read and write html according to a tutorial that uses html 4, and just practice it on notepad++ and test them on my browser.
Now there's a problem that's been bugging, the web page doesn't change at all even if I comment out the code or change a few things in it.
I messed around with the height and width of an image and it didn't change, I tried creating a folder outside the notepad++ folder and put everything there and nothing changed, I created a completely new file(added in notepad++) and folder and it was the same. I'm still in the middle of the tutorial and this problem has just been bothering me, someone please help
I think you should try clearing browser cache or try using other IDEs like vscode or if you use android then trebedit or Dcoder
Try refreshing your page, or use an IDE like Visual Studio Code and the live Server plugin. This should help you as a beginner because both of these tools are really easy to use. Maybe it isn't changing because you had never saved your file.

How to manipulate HTML in a Facebook post

Is there anyway that I can manipulate HTML in a Facebook post? Is it possible to edit the code in anyway without having to install a third-party app?
Sure, depending on which browser you are using, there are different ways. Just search for dev tools [your browser] and you will find a way. Guess it's mostly F12.
Of course that's just locally, you won't be able to change the data on the server, if you're not allowed to.
Right Click > Investigate or F12 on the Element you want to edit and on your right there should open the code you can freely edit it to your liking
Also when posting on SO please provide more than just saying i want to do that.. How to do it? Tell us what you have tried or where you have researched before asking the Question

Cursor Pointer Stops Working at Random Times?

I've been looking for an answer for a while now and I can't seem to find any reasons why this is an issue. I have various places in my style sheets where I use cursor: pointer for UI elements like buttons and links. The majority of the time it works as I expect, but occasionally they just don't want to work. I'd love to say I have a specific example in the style sheets that would ensure replication but that's been the issue. When it happens, it's not just for one element, it's for all of them. I've experienced this across the board with modern browsers and it seems to just be completely random which makes it hard to troubleshoot.
The only thing I've been able to confirm 100% is that if it does happen, I can open developer tools, then select an element to inspect that is supposed to have the cursor: pointer and the effect begins working everywhere again. I'm not sure what's going on here and it's driving me up the wall.
Is there any documentation surrounding this issue or something similar?
I experience it in localhost.
I haven't noticed it in production.
I haven't noticed it on JS Fiddle or Codepen when creating wireframes.
Is it a localhost issue? I've even thought it may be related to something I had done prior, but it happens even as I just navigate the site while debugging, sometimes it works on one page, but come back to the same page later in the session and it may not work anymore.
I know this one's tough and there's not a lot to go on. I don't usually make posts without code, but I'm just wondering if anyone else has experienced the same or a similar issue and resolved it.
I too have experienced this. It's actually not a code issue at all. I've found that the cursor: pointer bug you're experiencing is directly related to the Visual Studio 2017 (and newer) remote debugging browser window.
Solution
In Visual Studio, disable "Enable JavaScript Debugging for ASP.NET (Chrome & IE)".
At the top of your Visual Studio window, go to Debug -> Options. The highlighted item in the screenshow below must be unchecked:
This was a feature added in 2017, and while it helps with debugging JavaScript and TypeScript, it does so by launching a plain browser window ("remote debugger"); that is, no extensions, no bookmarks, no history, etc. The remote debugging browser window seems to have its fair share of bugs.
I saw this same behavior but not while debugging through visual studio. If I hit F12 to go to the Chrome dev tools, then click on an html element. The cursor goes to the style listed according to the style sheet.

Pycharm and HTML tags

Just updated Pycharm, and now it won't recognise any of my HTML tags. Do you also have this issue, or have I messed with some settings? A few days ago I changed a few of the HTML settings, but can't really remember what I did...
So, all of the yellow marked tags are not recognised by Pycharm anymore? I have no idea what I've done to cause this, unless its an update issue, but I searched online and could not find others with the same problem.
Had the same problem. Reading through this bug report I tried the following:
File | Invalidate caches
Worked like a (py)charm ;)
Delete your .idea folder, and then restart pycharm.
If you can refine your post, we'll be able to help you; can you point to a hi-lighted tag with your mouse and read the warning on pycharm status bar. Also you can do this by pointing to the warning indicators on the right in front of each line. Here are some things you can check:
settings/code style/html bring it back to defaults
settings/inspection bring it back to defaults
settings/file types choose html and check the registered patterns, it may be broken, you should find *.(htm, html, sht, shtm, shtml)
you could also un\re-install html tools plugin.

Updating test website (IIS)

I have a website hosted on IIS to do some testing. However whenever I change the html files in the website directory and referesh the webpage in my browser (chrome), nothing changes. Do I have to force the server to update and see the new changes, or is there something else?
I think that's not server related problem. (Of course you can try to restart server, or system if nothing helps)
Try followings
Clean your cookies, browsing history.
Then force refresh the page by hitting F5 / CTRL+F5 / CTRL+R.
Check with another browser
AFAIK you don't need to force any IIS reset or anything of that kind. As the other comments and answers already suggested something else is probably going on:
browser cache
perhaps IIS is not serving the files you're changing (a duplicate perhaps)
... etc
Try some Rubber Duck Debugging to find the problem, helped me out more than once with this kind of "This should just work, why doesn't it?" problem.
I've been using IIS for over a decade and it is very good about recognizing changes in your content and serving the latest. You don't have to refresh it. Some files like web.config or global.asa are special and when they are changed IIS will automatically restart the site for you.
Mime types like html, txt, gif, and jpeg are assumed by proxies and browsers to be very static and are cached aggressively in those layers (vs asp, jsp, etc).
This superuser question talks about refreshing in Chrome -- apparently its not always simple.
If, however, you want to give IIS a kick the easiest way is with the command line:
iisreset
I doubt it will fix your problem but it might make you feel better :)
This could be the browser cache (And yes! sometime Chrome is too smart). As you can see people answer here, their solutions can help. However, I would like to point possible problems of each solution and give my favorite solution.
clean browser history: no one like it, pretty annoy that you have to clean verytime.
force refresh by f5 or ctrl +f5: sometime this does not work.
check with another broswer: you can face the same problem when you do another change.
My favorite solution is that if your url is 'http://localhost/page1.html', you can call as 'http://localhost/page1.html?fake=xxxxx'. The xxxx can be any thing. You can change it anything you want. This solution fakes different urls for brosers but actually it is not different.