这可能是一个愚蠢的问题,但仅仅通过谷歌搜索找不到答案。是否可以使用intellisense来处理.aspx文件? VS只是以纯白文本显示所有代码。这是我的aspx文件的片段:
int removedSymbolCount = 0;
if (firstIndex >= 0) {
note = note.replaceFirst("[*]{1}", "");
removedSymbolCount++;
int secIndex = note.indexOf("*");
if (secIndex >= 0) {
note = note.replaceFirst("[*]{1}", "");
removedSymbolCount++;
String newString = "➥ "+note;
Spannable spannable = new SpannableString(newString);
spannable.setSpan(new ForegroundColorSpan(Color.YELLOW), firstIndex + removedSymbolCount, secIndex + removedSymbolCount, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
spannable.setSpan(new android.text.style.StyleSpan(android.graphics.Typeface.BOLD_ITALIC), firstIndex + removedSymbolCount, secIndex + removedSymbolCount, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
txtnote.setText(spannable);
}
}
我正在使用Visual Studio 2015专业版。任何帮助将不胜感激!!