I have blog and want to show asp.net programming code in blog but when i post then code color is black but i want to show same as asp.net code programming. If you don't understand then please checkbelow
DOCTYPE html>
<html>
<head>
<title>@ViewBag.Titletitle>
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript">script>
head>
div>
<div id="main">
@RenderBody()
<div id="footer">
div>
div>
div>
body>
html>
<html>
<head>
<title>@ViewBag.Titletitle>
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript">script>
head>
<body>
<div class="page">
<div id="header">
<div id="title">
<h1>Taxi Cab Automation Systemh1>
div>
<div id="logindisplay">
@Html.Partial("_LogOnPartial")
div>
<div id="menucontainer">
<ul id="menu">
@*
@*
ul>
div>
<div id="main">
@RenderBody()
<div id="footer">
div>
div>
div>
body>
html>
// GET: /Home/
CabDbContext _db = new CabDbContext();
public ActionResult Index()
{
//ViewBag.Message = "Welcome to Login Page";
//var v = ViewData.Model = _db.Employee.ToList();
// return View(v);
return View();
}
CabDbContext _db = new CabDbContext();
public ActionResult Index()
{
//ViewBag.Message = "Welcome to Login Page";
//var v = ViewData.Model = _db.Employee.ToList();
// return View(v);
return View();
}
Anubhav ChaudharyPosted Mar 31, 2014, 4:57 AM
Just follow these steps:
Firstly copy your code to Word file:
Now copy this code and go to the blog page, on the blog page you will find a "paste option" which is looking like folder option, click on this option and you will get the following options:
From here select "paste from word" and copy the code from word to here.
Now you blog will look like this:
kalu singh raoPosted Apr 5, 2014, 1:20 AM