General Category => ทั่วไป => ข้อความที่เริ่มโดย: admin ที่ มีนาคม 07, 2014, 10:41:46 PM

หัวข้อ: การตั้งค่าเวปจุมลาเพื่อแสดงโค้ดโปรแกรม
เริ่มหัวข้อโดย: admin ที่ มีนาคม 07, 2014, 10:41:46 PM
การตั้งค่าในจุมล่าเพื่อให้สามารถใส่ JavaScript ได้
(http://image.free.in.th/v/2013/ib/140307104313.png)

(http://image.free.in.th/v/2013/iy/140307104415.png)

(http://image.free.in.th/v/2013/im/140307104439.png)

(http://image.free.in.th/v/2013/ib/140307104503.png)

(http://image.free.in.th/v/2013/iz/140307104527.png)

*สรุป
-เวลาเขียนบทความให้เลือกเป็น -Use Default-
-เวลาใส่โค้ดโปรแกรมให้เลือก -CodeMirror
หัวข้อ: Re: การตั้งค่าเวปจุมลาเพื่อแสดงโค้ดโปรแกรม
เริ่มหัวข้อโดย: admin ที่ มีนาคม 09, 2014, 09:35:11 AM
โค้ดที่แทรกเพื่อแสดง
โค๊ด: [Select]
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src='http://www.praphas.com/displaycode/scripts/shCore.js' type='text/javascript'></script>
<script src='http://www.praphas.com/displaycode/scripts/shBrushJScript.js' type='text/javascript'></script>
<link type="text/css" rel="stylesheet" href="http://www.praphas.com/displaycode/styles/shCoreDefault.css"/>
<script type="text/javascript">SyntaxHighlighter.all();</script>
<body style="background: white; font-family: Helvetica">
<pre class="brush: js;">
#include&lt;REGX52.h&gt;
void delay(int n);
void main(void)
{
  unsigned char value=0;
  while(1)
  {
    P0=value; 
    delay(100);
    value++; 
  }
}
/*  delay function
*/
void delay(int n)     
{
  int x,y;
  for(x=0;x&lt;n;x++)
  {
    for(y=0;y&lt;500;y++)
    {
    }   
  }
}
</pre>
หัวข้อ: Re: การตั้งค่าเวปจุมลาเพื่อแสดงโค้ดโปรแกรม
เริ่มหัวข้อโดย: admin ที่ มีนาคม 09, 2014, 09:49:14 AM
ทดสอบการแทรกโค้ดใน smf
โค๊ด: [Select]
#include <REGX52.h>
void delay(int n);
void main(void)
{
  unsigned char value=0;
  while(1)
  {
    P0=value; 
    delay(100);
    value++; 
  }
}
/*  delay function
*/
void delay(int n)     
{
  int x,y;
  for(x=0;x<n;x++)
  {
    for(y=0;y<500;y++)
    {
    }   
  }
}