Looks like the main problem was with your blocks of code. My recommendation would be to keep in a text editor and get rid of the extra line feeds, and then paste them in via the
code widget... I did this sample wrapping the code with <pre lang=c#> and </pre>
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);
}