How can I make eclipse to give me a code that I made as a sample code? - eclipse

When I made a source file in eclipse,
Eclipse gave me a sample code in it.
If i make a HTML file in Eclipse
<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
Sample code like this came with code file.
I want to change this sample code.
How can I make eclipse to give me a code that I made as a sample code?

Open Preferences > Web > HTML Files > Editor > Templates.
Choose the appropriate 'New HTML File (xxxx)' template and click 'Edit...' to change it.

Related

Eclipse. Are there something to have www bookmarks related to project?

I want to have bookmarks related to libraries,frameworks used in eclipse project. What is the best way? Only one I can imagine is to have bookmarks folders in Firefox, and nothing in build-in browser.
May be its possible to have url files in project folder, act as bookmarks, with fav icon and opened in build in browser? Then I can import them depending on frameworks used.
I mean any libraries included in project, bookmarks may be created not automatically, I can just copy/import them together with library.
Example, 3 library included:
<!DOCTYPE html>
<html>
<head>
<title>Contact Manager</title>
<script src="dx/dhtmlx.js" type="text/javascript"></script>
<link rel="STYLESHEET" type="text/css" href="dx/dhtmlx.css" />
<script src="/js/jquery-1.7.2.min.js"></script>
<script src="/tinymce/js/tinymce/tinymce.min.js"></script>
<style>
So, in general, I need some buttons/files/anything else, what opens a webpage. And it should be easy to copy or import to project.

Set Chinese Fonts on HTML Emails (Outlook)

Is it possible to set a Chinese font on HTML Emails for Outlook 2013? I want to be able to change the style of the punctuation for commas and full stop.
So it'll look similar to the Microsoft JhengHei font instead of the SimSun font.
There are a couple things you can do to make sure Chinese characters display in web or email. First, some code for the email <head>:
<!DOCTYPE html>
<!--
Set HTML language attribute
zh = Chinese
zh-Hans = Chinese (Simplified)
zh-Hant = Chinese (Traditional)
-->
<html lang="zh" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<!--
utf-8 works for most cases, including Chinese
-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
</html>
You must make sure that you save your document in UTF-8 format and upload the document to your server or ESP so that the format is preserved. Some editors won't do or aren't configured like this by default, so you may need to check on that.
But ultimately these fonts won't display if a user doesn't have them installed on their local system. Specifying an appropriate font stack behind Microsoft JhengHei will help ensure that something shows up.

Viewing .swf Code Without Editing

I have a .swf file that I want to show people. I thought it would be a good idea for them to be able to view the code, but I don't want them to be able to edit it, so then they don't mess up my work. Are there any good programs for that? I'm using windows.
Do you want .swf on website? If so you can use html code.
<!DOCTYPE html>
<html>
<body>
<embed src="helloworld.swf">
</body>
</html>

Unable to add favicon to my jsp

I am unable to add a favicon to my jsp page. Adding the favicon as a link to a specific path did not work for me.
Any help would be greatly appreciated.
Here you can see my WebContent folder with what I tried, as well as the path to the icon I used.
You should put the favicon inside the Web-Content folder directly (not in the image folder) if you want the best compatibility with most browsers.
The link would then be: <link rel="shortcut icon" href="home_logo_vPK_icon.ico?" type="image/x-icon" />
Also, did you refresh the cache before testing? If not, reset the cache, or you will not see your changes.
Finally, it could also be your icon. Try using a favicon generator.

wrap code in notepad++

I love notepad++ but I dislike when someone sends me an .html or .xml file and the entire code is on one line. Is there a plugin or program that will take a one like code and indent it correctly on multiple lines?
Example:
<html><head><title></title></head><body><div></div></body><html>
<html>
<head>
<title></title>
</head>
<body>
<div>
</div>
</body>
<html>
There is an HTML tidy plugin available that correspond to your need. You can also install the TextFX plugin which adds a bunch of other enhancements.
There's a plugin named XML tool which does the pretty print for you.
Use Plugin Manager (Menu Plugins->Plugin Manager) to install it.