코드 단락을 쉽게 읽을 수 있도록 다음 릴리스(2.0.1)부터 코드 하일라이트를 지원할 계획입니다.
코드 하일라이트를 사용하려면 단락 옵션에서 언어를 선택합니다.
처음에는 다음 언어만을 지원합니다.
자바
자바스크립트
CSS
XML
HTML
JSP
자바 코드에 하일라이트를 적용한 예입니다.
/**
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
*/
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}CSS 코드에 하일라이트를 적용한 예입니다.
body {
background-color: #d0e4fe;
}
h1 {
color: orange;
text-align: center;
}
p, #header, .panel {
font-family: "Times New Roman";
font-size: 20px;
}이 코드는 http://www.w3schools.com/css/에서 참고했습니다.
JSP 코드에 하일라이트를 적용한 예입니다.
<%@ page import="java.util.*" %>
<html>
<body class="chrome">
<%!
Date theDate = new Date();
public Date getDate() {
System.out.println("In getDate() method");
return theDate;
}
%>
<p>Hello! The time is now <%= getDate() %></p>
</body>
</html>이 코드는 http://www.jsptut.com/Declarations.jsp에서 참고했습니다.