有一些方法我可以在我的代码的某些颜色部分(不是输出,实际代码)在android工作室中着色?
类似的东西:
case R.id.buttonbackup:
Toast.makeText(this, "first", Toast.LENGTH_SHORT).show();
try {
Toast.makeText(this, "before try", Toast.LENGTH_SHORT).show();
BackUpContacts();
DeleteAllContacts();
Toast.makeText(this, "after try", Toast.LENGTH_SHORT).show();
} catch (IOException e) {
Toast.makeText(this, "EX", Toast.LENGTH_SHORT).show();
e.printStackTrace();
Toast.makeText(this,e.getStackTrace().toString() , Toast.LENGTH_SHORT).show();
} catch (Exception e) {//this the part i want to color
e.printStackTrace();
}
break;
我想为捕获的所有部分着色。有办法做到这一点?