...
Code Block | ||
---|---|---|
| ||
# Here is an example of the ls where -l specifies list and -h specifies to print sizes in human readable format (e.g., 1K 234M 2G) ls -lh total 5004 drwxr-xr-x 2 svradm svradm 4096 2010-04-12 22:44 . drwxr-xr-x 10 svradm svradm 4096 2011-02-02 12:45 .. -rw-r--r-- 1 svradm svradm 15240 2010-03-09 12:06 annotations-api.jar -rw-r--r-- 1 svradm svradm 53752 2010-03-09 12:06 catalina-ant.jar -rw-r--r-- 1 svradm svradm 128482 2010-03-09 12:06 catalina-ha.jar -rw-r--r-- 1 svradm svradm 1185418 2010-03-09 12:06 catalina.jar -rw-r--r-- 1 svradm svradm 234968 2010-03-09 12:06 catalina-tribes.jar -rw-r--r-- 1 svradm svradm 32384 2010-03-09 12:06 el-api.jar -rw-r--r-- 1 svradm svradm 108557 2010-03-09 12:06 jasper-el.jar -rw-r--r-- 1 svradm svradm 524432 2010-03-09 12:06 jasper.jar -rw-r--r-- 1 svradm svradm 1408191 2010-03-09 12:06 jasper-jdt.jar -rw-r--r-- 1 svradm svradm 76634 2010-03-09 12:06 jsp-api.jar -rw-r--r-- 1 svradm svradm 88224 2010-03-09 12:06 servlet-api.jar -rw-r--r-- 1 svradm svradm 758643 2010-03-09 12:06 tomcat-coyote.jar -rw-r--r-- 1 svradm svradm 232855 2010-03-09 12:06 tomcat-dbcp.jar -rw-r--r-- 1 svradm svradm 69932 2010-03-09 12:06 tomcat-i18n-es.jar -rw-r--r-- 1 svradm svradm 51851 2010-03-09 12:06 tomcat-i18n-fr.jar -rw-r--r-- 1 svradm svradm 54920 2010-03-09 12:06 tomcat-i18n-ja.jar |
Yes, the code macro is missing is the ability to,
- Colour code
- Bold or Italicize
- Use Hyperlinks
However, the code macro handles the most important requirements,
- Defaulting to a mono-spaced font (which is critical in text based work for rendering tabular data)
- Auto horizontal scrolling
- The right macro where Confluence will continue to add features for code
Warning |
---|
Put a link here to vote for the feature to improve the code macro. |
Code Examples
We use the same macro but select the particular language to used in the example.
...