1.標示為程式碼,
將你的程式碼包在
<code class="prettyprint">程式碼內容</code>
<pre class="prettyprint">程式碼內容</pre>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BookService.Models
{
public class BookDetailDTO
{
public int Id { get; set; }
public string Title { get; set; }
public int Year { get; set; }
public decimal Price { get; set; }
public string AuthorName { get; set; }
public string Genre { get; set; }
public string Genre { get; set; } //還可以標記特別區塊
}
}
int x = foo(); /* This is a comment This is not code
Continuation of comment */
int y = bar();
沒有留言:
張貼留言