I had gone to https://confluence.atlassian.com/doc/code-block-macro-139390.html to see the various parameters I can use in the code block. I've taken the example at the bottom of the page to copy from but so far only title seems to work for me. I.e. linenumbers, firstline, collapse all don't work. I tried language=java and it seems to work but it's not working for my JavaDoc comments.
My code fragment is as follows:
{code:title=DateTimeUtil.java|theme=FadeToGrey|linenumbers=true|language=java|firstline=0245|collapse=true}
/**
* Prints a list of days of week into a cohesive label that can be displayed properly.
* This takes into consideration that 1 means Sunday and 7 means Saturday and sorts it
* properly with Monday being the first day of the week. This also generates a range
* notation with " - " as a separator if there are consecutive days. Otherwise, this
* will list out days (and ranges) in a comma-separated way.
*
* @param daysOfWeek a List of Integers each representing a day of the week. It uses the
* Calendar field DAY_OF_WEEK as basis where 1 means Sunday and 7 means
* Saturday
* @return a prettily printed label that describes all the days that this List represents
*/
public static String prettyPrint(List<Integer> daysOfWeek)
{
return "";
}
{code}