VS Community: No HTML Highlight - html

After working back with my project I saw that my HTML doesn't highlight and Razor Intellisense is not working at all. Any ideas how to fix it? Tried to reset settings and even reinstalling whole VS?

Ok, so I've installed DotNetCore.1.0.1-VS2015Tools.Preview2.0.2.exe and then run devenv.exe /resetuserdata, later on I've deleted .vs folder inside my project folder. When I run my project again everything was working properly. The problem was I didn't even have Web Templates when I was trying to create new project, after installing above they have shown in New Project templates.

Related

Opening Index.html leads to a blank page

I'm new to web development and found a website prototype, but when I tried to open it by clicking on the index.html in the files, it's completely blank. The only thing I see is on the tab, and it just says "React App".
How do I make the website components actually show? I know there should be something showing because I can see all of the code and pages, but nothing shows?? Is there some other way to open the website?
React is a library that compiles all your javascript then renders it in index.html file. If you open the file directly you won't see anything. If you want to run your project then:
Open the project folder in vscode.
Press CTRL+J if you have windows.
Type npm install - It will install all project dependencies listed
in package.json at the root of your project.
Then run npm start - This will start development server locally
that you can use to develop your project as you go.
Then go to App.js and make changes and see how the server
automatically refreshes.
to learn more, go to Get started with react - FreeCodeCamp

How to fix errors in all angular html files in eclipse

Hello guys, I am new in angular and just created a project in eclipse. At first all the .ts files were opening as a an audio file but when I install angular plugin, the .ts files opened normal. However, the HTML files became as in the image above. Could someone help me on what to do in other to get rid of the errors.
The error appears in all html files, but the app runs.
I installed Angular IDE by CodeMix and the errors were gone, this could be achieved using "Install New Software".

How do I run and edit this github code?

I am new to developing but I want to experiment with making changes to this code my friend made for a site we are working on. This is the github link:
https://github.com/415DomSmith/ADA_Map
I've opened html files with chrome before to view them but that doesnt seem to work here. Opening views/landing.ejs with chrome doesnt render the whole site.
Here is a screenshot of the main folder contents:
main folder contents screenshot
So my question is what program can I use to render and make edits to the code? Can brackets do it? I've tried with no luck.
Thanks!
cd ${the root path of the project}
npm install
node app.js
visit localhost:3000 in the browser.
According to your description, I think you are new of nodejs and express.
If you want to understand it thoroughly, you must study below.
npm package
nodejs
express

Why is IIS Express returning HTTP 500 errors loading javascript and CSS?

I am trying to develop an ASP.NET MVC5 solution using IIS Express for local debugging. Frequently, Chrome will report HTTP500 errors trying to load certain JS and CSS files (some using the built in bundling and minification feature of MVC, some on their own).
WTH is going on with this and how do I stop it?
Thanks,
Matthew
Turns out this was related to ninject object lifecycles and my EF db context being open twice at the same time. Totally unrelated to IIS.
What helped worked is as follows. I am using Visual Studio 2015.
Close the visual studio solution. In fact I closed the visual studio itself
In the solution folder(the folder which contains the .sln file along with the project folders), you should find a .vs folder. I had deleted that folder.
Restarted the visual studio and loaded the solution.
Things are working fine now.
The reason I guess is, the config folder inside of .vs folder has the applicationhost.config file. That is having some setting issues.
In my case, I got to remove the attribute of debug="true" in web.config compilation node.
From
<compilation debug="true" targetFramework="4.7.2" />
To
<compilation targetFramework="4.7.2" />
Then it works fine.
Old thread but still relevant in VS 2019 and the top result.
For me, I created a .NET CORE WebApp (an API), then deleted it, deleted the files it left behind and recreated a .NET Framework (API) of the same name.
Started it up and spotted it was still using the same port number
https://localhost:44379
but the basic formatting was gone and 500 errors on all the .css and .js files. After editing the .csproj file and changing
<IISUrl>https://localhost:44379/</IISUrl>
to
<IISUrl>https://localhost:44380/</IISUrl>
Changing this reset something IIS Express and the css and .js files loaded and it looked fine.

PhpStorm File open issue

I new to using PhpStorm, I am trying to figure out 2 things which are giving me issues:
When i have the phpstorm already open and i use windows explorer to open a php file i get a cannot find file error. If I close PhpStorm and try to open, it works fine. Any reason why it happens do I need to change any settings?
How do I view projects I created using phpstorm any feature similar to eclipse so I can switch and back between multiple projects.
Thanks in advance.
It's a bug.
PhpStorm doesn't have workspaces concept, File | Reopen recent project is what you can use now.