Launch webpage in sublime text 2 - ide

I am new to sublime text 2.
I wanted to know how can I browse my web page in sublime text 2.
Earlier I was using Visual Studio where I can right-click on a web page and view it in browser of choice. It either used IIS express or it's in built Cassini web server for this.
I need same functionality with sublime. Please guide me how I can I acheive that.
Thanks in advance.

There is a package for that: https://github.com/adampresley/sublime-view-in-browser
May be installed with Package Control using the standard way. Search for View in browser.

Related

Can i add the https://www.tiny.cloud/docs/quick-start/ to load from our local server

I am working on an Asp.net MVC core web application, which work as an internal application (users might access the application without internet access), and i added the Tiny rich text editor from this link https://www.tiny.cloud/docs/quick-start/ . but seems this rich text editor will only load/work if the users are connected to the internet. so my question is if i can force this rich text editor to work and load locally?
Thanks
Yes you can download the Tiny Editor files and host them on your own webserver.
https://www.tiny.cloud/docs/general-configuration-guide/advanced-install/#sdkinstall
You can also install via NuGet (or NPM etc).

website text only when run it from iis manager

this is my first time using IIS Manager to deploy Website, I built my website using MVC 4 Visual Studio. When i run from Visual Studio this is the
view
but when i deploy using IIS Manager. this is the
view
Please help me.
CSS are not loading Please verify the path of CSS and js files. For more information please use inspect element in your browser .
This Solve, I open IIS Manager and Open Directory Browsing, at the right side, click enable.

Visual Studio 2012 ClickOnce publishing default webpage

I am publishing applications to my website using the ClickOnce publishing tool within Visual Studio 2012, which publishes the webpage which checks for prerequisites and then downloads the application. However, this is formatted completely differently to my website.
Is there a way I can pass Visual Studio a template of some sort which it can use to create the webpages, as otherwise I have to go through and manually change all of the stylings for every application/update I publish. I know I can use an external CSS file to do this, but the webpages are created with inline styling, which was causing problems with the way it was laid out when I tried this last night.
I found this from http://msdn.microsoft.com/en-us/library/k5befhe3.aspx:
To customize the publish Web page
1.
Publish your ClickOnce application to a Web location. For more information, see How to: Publish a ClickOnce Application using the Publish Wizard.
2.
On the Web server, open the Publish.htm file in Visual Web Designer or another HTML editor.
3.
Customize the page as desired and save it.
4.
Optional. To prevent Visual Studio from overwriting your customized publish Web page, uncheck Automatically generate deployment web page after every publish in the Publish Options dialog box. For more information, see Publish Options Dialog Box.
Which means I would have to change each page manually. Does anyone know of a way to pass a template in for VS to use, or is each webpage created on the fly when I click publish?
Thanks
Optional. To prevent Visual Studio from overwriting your customized publish Web page,
uncheck Automatically generate deployment web page after every publish in the Publish
Options dialog box. For more information, see Publish Options Dialog Box.
This is what you want to do, I guess?

Does IntelliJ have an internal web server to serve static content of a web application?

Right now, the directory of my module is defined as an IIS virtual directory and IIS serves the files.
I was wondering whether IntelliJ has an internal web server, which can serve the files, without the need for any third party. Eclipse does.
UPDATE: built-in web server is available in the recent IntelliJ IDEA versions (starting from 13). You can find more details in the blog (yes, this feature first appeared in WebStorm).
IntelliJ IDEA has no this feature, you need to install and use any third-party web server that can serve the content from the project folders.
A built-in HTTP preview server will be part of Intellij IDEA 13 and is already available in the EAP: http://youtrack.jetbrains.com/issue/WEB-7148
"All existing actions — preview in browser (pop-up over html file or menu action or
shortcut), open in browser and create/debug html file action now open file on built-in web
server
http://localhost:63342/<project name>/<file path relative to source or content root>"
In other words, right-click on an HTML page and select "Debug" or "Open in browser", and IDEA 13+ will serve up that page via port 63342.
Here's another super simple option, install Python: http://www.python.org/getit/
Then open a shell prompt, navigate to your root web folder (e.g. public) and run python -m SimpleHTTPServer - This starts an HTTP Service on port 8000.
Further reading should you need it: http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python
I've got mine running on Windows 7 but the above article still applies.
Another option is is create a PHP project that, starting with v 5.4.0 of PHP includes a built in web server. This page explains it all ...
http://www.jetbrains.com/idea/webhelp/php-built-in-web-server.html
IntelliJ IDEA has a built-in web server that can be used to preview and debug your application. Just watch this YouTube video or follow the steps below.
Option 1
You need to add new 'JavaScript Debug' configuration:
Click Add Configuration... or Edit Configurations... in the Navigation bar
Click button in the toolbar or press Alt + Insert to create a new configuration
Select JavaScript Debug under the Templates node in the tree view of run configurations
Fill in Name, URL, Browser and click [OK] to save the configuration
Use http://localhost:63342/YOUR-PROJECT-NAME/index.html for URL
Now you can run the configuration:
Click run or debug button in the Navigation bar (or use Shift + F10 / Shift + F9 hotkeys).
Option 2
Running web page in browser without creating a configuration. Refer to the related IntelliJ IDEA Help article.
In the editor, open the HTML file. This HTML file does not necessarily have to be the one that implements the starting page of the application.
Do one of the following:
Choose View | Open in Browser on the main menu or press Alt+F2. Then select the desired browser from the pop-up menu.
Hover your mouse pointer over the code to show the browser icons bar: . Click the icon that indicates the desired browser.
Result
Google Chrome browser with a demo web page served by the Intelij IDEA's built-in webserver:
One simple way is to create a NodeJS / Express project in IntelliJ that is your web server. You can then use it to serve your static web pages and any other web content. The NodeJS web server is very small and runs fast - noticeably faster than IIS and Apache. Best of all you can just hit the Run button in IntelliJ or WebStorm to start it up.
By default, a NodeJS / Express project includes a public/ directory that you can use to contain your static pages that you can then view from http://localhost:3000/
This explains the steps required to enable NodeJS in IntelliJ and includes links to other Node resources:
http://www.jetbrains.com/idea/webhelp/node-js.html
If you feel the need, you can reconfigure your NodeJS server using server side Javscript code. You can add SSL support or almost any other server side features you care to dream up. Just add NodeJS modules using the npm (Node Package Manager) command line tool included with the install. NPM Registry https://npmjs.org/ indexes all the available modules.
You can configure IntelliJ to use a lot of different application containers, but each of them must be downloaded and installed separately. I currently have mine configured to serve via jetty, like eclipse, and also tomcat, tc-server, jboss, and node.js. It's pretty easy to set up.

VB.net web browser question

making a web browser on vb.net is depending on your internet explorer. How can I customize it so it will depend on mozilla. Please any suggestions or recommendations.
Thanks.
If I understand your question correctly, you are making a website in VB.NET that starts in Internet Explorer, and you want to start it in FireFox instead?
To change the default browser in Visual Studio, Right Click a web form -> Browse With... -> Choose FireFox and click "Set As Default".