private AttributedString createPrefix(CommentStyle commentStyle) {
		if (commentStyle == CommentStyle.EOL) {
			return new AttributedString(SEMICOLON_PREFIX, CommentColors.EOL, getMetrics(style),
				false, null);
		}
		if (commentStyle == CommentStyle.REPEATABLE) {
			return new AttributedString(SEMICOLON_PREFIX, CommentColors.REPEATABLE,
				getMetrics(repeatableCommentStyle), false, null);
		}
		if (commentStyle == CommentStyle.REF_REPEATABLE) {
			return new AttributedString(SEMICOLON_PREFIX, CommentColors.REF_REPEATABLE,
				getMetrics(refRepeatableCommentStyle), false, null);
		}
		if (commentStyle == CommentStyle.AUTO) {
			return new AttributedString(SEMICOLON_PREFIX, CommentColors.AUTO,
				getMetrics(automaticCommentStyle), false, null);
		}
		if (commentStyle == CommentStyle.OFFCUT) {
			return new AttributedString(SEMICOLON_PREFIX, CommentColors.OFFCUT,
				getMetrics(style), false, null);
		}

		throw new AssertException("Unexected comment style: " + commentStyle);
	}
Set the max number of lines to display for EOL comments.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/EolCommentFieldFactory.java