Wednesday 27 April 2016

Markdown: represent code

` is used to indicate a span of code.


code_sample.md
> `System.out.println()` is used to print statement to the console.

> `Integer.parseInt(String str)` converts a string to integer.

Following is the preview for above markdown file.

Following html code is generated for above markdown file.

<?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>
  <blockquote>
    <p>
      <code>System.out.println()</code>
      is used to print statement to the console.
    </p>
  </blockquote>
  <blockquote>
    <p>
      <code>Integer.parseInt(String str)</code>
      converts a string to integer.
    </p>
  </blockquote>
</body>
</html>


Previous                                                 Next                                                 Home

No comments:

Post a Comment