انجمن


چگونه در پست ها کد های php را نشان دهم؟  (۵ نوشته)

  • SVRn

    آفلاین
    عضو
    تعداد نوشته‌ها: ۱۸
    تشکر شده: ۲ بار
    # نوشته شده: ۱۲ سال پیش
    ۲۴ شهریور ۱۳۹۰ - ۰۹:۳۳

    سلام
    چطور می تونم در پست های خودم از کد های php استفاده کنم.
    به صورتی که بازدید کننده بتونه از اون کدها استفاده کنه

  • Parsa

    آفلاین
    عضو فعال
    تعداد نوشته‌ها: ۱۹۲۱
    تشکر شده: ۲۶۸۳ بار
    # نوشته شده: ۱۲ سال پیش
    ۲۴ شهریور ۱۳۹۰ - ۱۰:۲۶

    http://wordpress.org/extend/plugins/syntaxhighlighter-plus/

    کاربران زیر به‌خاطر این نوشته تشکر کرده‌اند:
    SVRn - Morteza
  • ahb

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۵
    تشکر شده: ۹ بار
    # نوشته شده: ۱۲ سال پیش
    ۲۴ شهریور ۱۳۹۰ - ۱۷:۰۷

    ببخشید دوست عزیز
    اینجا داخل انجمن خوب کد میزاره
    اما داخل سایتم کد ها را اجرا میکنه
    چیکار باید بکنم

    نمونه گزاشته شده: http://ahb-dl.ir/?p=3324

    نمونه در اینجا:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta content="<-BlogId-> وبلاگ blog" name="description" />
        <meta content="<-BlogId->, Weblog, Daily, Writing, TakTemp , Blogfa  ,  Blog , Shophaa , Iran , Iranian, Farsi, Weblogs, Blogs, وبلاگ, يادداشت روزانه, تک تمپ , وبلاگ فارسي , وبلاگ ايراني , وب نوشت "
            name="keywords" />
        <link rel="alternate" type="application/rss+xml" title="<-BlogTitle->" href="<-BlogXmlLink->" />
        <title><-BlogAndPostTitle-></title>
        <script type="text/javascript">
    _uacct = "UA-3897086-1";
    urchinTracker();
    </script><script language="JavaScript">function highlight(elemnt) {document.getElementById(elemnt)
    .select();document.getElementById(elemnt).focus();if (document.all) {textRange = document.
    getElementById(elemnt).createTextRange();textRange.execCommand("RemoveFormat")
    ;textRange.execCommand("Copy");alert("کد لوگو در حافظه جانبي کپي شد");}}</script><title><-BlogTitle-></title>
    <script lang ="javascript">
    function GetBC(lngPostid)
    {
    intTimeZone=<-BlogTimeZone->;
    strBlogId="<-BlogId->";
    intCount=-1;
    strResult="";
    try {
    for (i=0;i<BlogComments.length;i+=2)
    {
    if (BlogComments[i]==lngPostid)
    intCount=BlogComments[i+1] ;
    }
    }  catch( e) {
    }
    if ( intCount==-1)  strResult="آرشيو نظرات";
    if ( intCount==0)  strResult="نظر بدهيد";
    if ( intCount==1)  strResult="يك نظر";
    if ( intCount>1)  strResult=intCount + " نظر" ;
    strUrl="http://commenting.blogfa.com/?blogid=" +strBlogId + "&postid=" + lngPostid + "&timezone=" + intTimeZone ;
    strResult ="<a href=\"javascript:void(0)\" onclick=\"javascript:window.open('" + strUrl + "','blogfa_comments','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=500px,height=500px')\" >" +  strResult + " </a>" ;
    document.write ( strResult ) ;
    }
    function OpenLD()
    {
    window.open('LinkDump.aspx','blogfa_ld','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=500px,height=500px');
    return true;
    }
    </script>
    
    <style type="text/css">
    .SearchBox, .MailInput  {font-size:8pt;font-family:tahoma;color: #6D7A81;height:18;border: 1px solid #DAE2E3;background-color: #F3F5F5}
    .namebox, .webbox, .mailbox, .Comm  {font-size:8pt;font-family:tahoma;color: #6D7A81;border: 1px solid #DAE2E3;background-color: #F3F5F5}
    .SendBTN,.PoolButton,.SearchBTN, .mailbtn, .resetbtn, .BTN  {font-size:8pt;font-family:tahoma;color: #FFFFFF;border: 1px solid #000;background-color: #823D04;text-align:center;height:18; padding-bottom:3px}
    
        </style>
        <link href="http://theme.mihantheme.com/taktemp/adrapana/style.css" rel="stylesheet" type="text/css" />
    
    </head>
    <body>
        <div id="spacer" style="clear: both; position: absolute; line-height: 0px; width: 50%;">
    
        </div>
        <div class="left-bg">
            <div class="script">
            </div>
        </div>
        <div class="right-bg">
        </div>
        <div id="head">
            <div class="crack">
            </div>
            <div class="header">
  • Parsa

    آفلاین
    عضو فعال
    تعداد نوشته‌ها: ۱۹۲۱
    تشکر شده: ۲۶۸۳ بار
    # نوشته شده: ۱۲ سال پیش
    ۲۴ شهریور ۱۳۹۰ - ۱۸:۴۸

    از چه روشي استفاده كرديد؟
    راهنما در اين صفحه هست
    http://wordpress.org/extend/plugins/syntaxhighlighter-plus/
    http://wordpress.org/extend/plugins/syntaxhighlighter-plus/other_notes

  • ahb

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۵
    تشکر شده: ۹ بار
    # نوشته شده: ۱۲ سال پیش
    ۲۴ شهریور ۱۳۹۰ - ۱۹:۲۲

    من می خواهم کد قالب وبلاگ را در نوشته بگزارم

    کد قالب وبلاگ HTML یا PHP
    کدام است؟

درباره‌ی این موضوع



برچسب‌ها

هیچ برچسبی نیست.