برای قرار دادن کدهای برنامه نویسی رنگی در سایت، در ویراستار متنی طلوع، بر روی دکمه ی Code snippet کلیک کنید. (مانند تصویر زیر)
نمونه کد HTML به صورت زیر است:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
</head>
<body>
Content of the document......
</body>
</html>
نمونه کد جاوا اسکریپت:
$("button").click(function(){
$.getScript("demo_ajax_script.js");
});
نمونه کد سی اس اس:
.top {
position: relative;
background-color: #ffffff;
height: 68px;
padding-top: 20px;
line-height: 50px;
overflow: hidden;
z-index: 2;
}
نمونه کد PHP
<?php
if ($argc !== 2) {
echo "Usage: php hello.php [name].\n";
exit(1);
}
$name = $argv[1];
echo "Hello, $name\n";
نمونه کد سی شارپ:
string s = Enum.GetName(typeof(Days), 4);
Console.WriteLine(s);
Console.WriteLine("The values of the Days Enum are:");
foreach (int i in Enum.GetValues(typeof(Days)))
Console.WriteLine(i);
Console.WriteLine("The names of the Days Enum are:");
foreach (string str in Enum.GetNames(typeof(Days)))
Console.WriteLine(str);