Starting From version 1.1.1 CodeView now have support for line number.
codeView.setEnableLineNumber(true and false);
codeView.isLineNumberEnabled();
codeView.setEnableRelativeLineNumber(true and false);
codeView.isLineRelativeNumberEnabled();
codeView.setEnableHighlightCurrentLine(true and false);
codeView.isHighlightCurrentLineEnabled();
codeView.setHighlightCurrentLineColor(Color.GREY);
codeView.setLineNumberTextColor(Color.GREY);
codeView.setLineNumberTextSize(size like 30f);
codeView.setLineNumberTypeface(typeface);