Saturday, 23 April 2016

Install Markdown plugin in Eclipse.

To install, use Eclipse's Software Updates mechanism (Help > Install New Software), work with the URL: http://winterwell.com/software/updatesite/

Create a new project (File -> New -> Project) “markdown_tutorial” in eclipse.

Create new file ‘hello_world.md’. Right click on the project, New -> File, give the file name as hello_world.md.

Once you create a file hello_world.md, Eclipse display two windows Markdown source, Preview. In Markdown Source window, you can type the markdown source code, Preview display the markdown source code in visual format.

For example, copy following code in hello_world.md file.


hello_world.md
# heading 1
## heading 2
### heading 3
#### heading 4
##### heading 5
###### heading 6

It shows following preview for above code.
You can convert markdown code to html. To convert markdown code to html, right click on hello_world.md file, WikiText -> Generate HTML.
Following is the source code of hello_world.html file.


hello_world.html
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
 <h1 id="heading-1">heading 1</h1>
 <h2 id="heading-2">heading 2</h2>
 <h3 id="heading-3">heading 3</h3>
 <h4 id="heading-4">heading 4</h4>
 <h5 id="heading-5">heading 5</h5>
 <h6 id="heading-6">heading 6</h6>
</body>
</html>

Subsequent posts, explain markdown concepts in detail.    


Previous                                                 Next                                                 Home

2 comments:

  1. I am looking for a plugin that will allow me to write markdown notation in the output from System.out.print() so I can create hyperlinks in the console window, make clickable links to source files, etc. I have essentially no interest in plugins for editing, etc.

    ReplyDelete
  2. I am looking for a plugin that will allow me to write markdown notation in the output from System.out.print() so I can create hyperlinks in the console window, make clickable links to source files, etc. I have essentially no interest in plugins for editing, etc.

    ReplyDelete