doc 어노테이션은 Markdown 포맷을 포함할 수 있다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| "The classic [Hello World program][helloworld] that prints a message to the console, this time written in [Ceylon][]. This simple program demonstrates: 1. how to define a toplevel function, and 2. how to `print()` a literal `String`. You can compile and run `hello()` from the command line like this: ceylon compile source/hello.ceylon ceylon run -run hello default Or you can use `Run As > Ceylon Application` in the IDE. [helloworld]: [http://en.wikipedia.org/wiki/Hello_world_program](http://en.wikipedia.org/wiki/Hello_world_program) [Ceylon]: [http://ceylon-lang.org](http://ceylon-lang.org)" void hello() { print("Hello, World!"); }
|
Markdown 은 텍스트가 나타나는 초기 컬럼에 민감하기 때문에 여러줄 리터럴의 들여쓰기를 정확히 하도록 신경써야 한다.