本文介绍了在wordpress博客中格式化代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好。我的博客上有一篇新文章:< a https://www.codeproject.com/Articles/1271364/Creating-a-Side-Menu-for-ASP-NET-Core-using-a-View。它来自wordpress网站。但是,我究竟如何才能完全格式化代码呢?它的间距太大了。
谢谢
我的尝试:
用html编辑器和可视化编辑器编辑代码。
Hello. I have my blog with a new article at: <a https://www.codeproject.com/Articles/1271364/Creating-a-Side-Menu-for-ASP-NET-Core-using-a-View . It's from a wordpress site. But, how exactly would I format the code propertly? It's got too much spacing in it.
Thanks
What I have tried:
editing the code with html editor and visual editor.
推荐答案
namespace CbaMvc.Areas.Admin.Controllers {
public class MenuViewComponent : ViewComponent {
private readonly CbaMenuHelper _cbaMenuHelper = new CbaMenuHelper();
private readonly CbaAssessmentManager _assessmentManager;
private readonly UserManager _userManager;
public MenuViewComponent(CBAContext cbaContext, MRMContext mrmContext, UserManager<CbaUser> userManager) {
_assessmentManager = new CbaAssessmentManager(mrmContext, cbaContext);
}
这篇关于在wordpress博客中格式化代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!