You are not logged in.

4.3.16. Code

       موقع اللعبة
       لوحة الدعم
       فريق العمل
       قوانين المنتدى
       مبادئ السلوك

يرجى الانتباه أن أعمال صيانة الخادم الأسبوعية تبدأ كل ثلاثاء في الساعة 9 بتوقيت غرينيتش، 12 ظهرا بتوقيت مكة. بعد الانتهاء من أعمال الصيانة سيكون الخادم متوفراً للاستعمال من جديد، وذلك حوالي الساعة 11 بتوقيت غرينيتش، 2 بعد الظهر بتوقيت مكة كأقصى حد.
تأكد من تسجيل الخروج قبل وقت الصيانة لتجنب فقدان العتاد

الرجاء إستخدام اللغه العربية لتصفح سهل وسريع.


كن جزءا من فريقنا
طلبات الإنضمام الى فريق عمل اللعبة : مغلق

طلبات الإنضمام الى فريق عمل المنتدى : مفتوح


جدول مسابقات اللعبة وأحداثها

مهم لتجنب خسارة حسابك وأدواتك

Dear visitor, welcome to Mt2Classic. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

4.3.16. Code

[code=Starting line number]Code[/code]

If you want to display source code of a script or application you can use the code bbcode. The source code will keep the format. Additionally the line numbers will be shown. Enter the starting number of lines as a parameter. If you want to use syntax highlighting take one of the following keywords instead of code:

  • c
  • css
  • html
  • java
  • js
  • mysql
  • php
  • tpl
  • xml

Example

[php=364]/**
 * Initialises the template engine.
 */
protected function initTPL() {
	self::$tplObj = new Template(self::getLanguage()->getLanguageID());
	$this->assignDefaultTemplateVariables();
}[/php]

PHP Source code

364
365
366
367
368
369
370
/**
 * Initialises the template engine.
 */
protected function initTPL() {
    self::$tplObj = new Template(self::getLanguage()->getLanguageID());
    $this->assignDefaultTemplateVariables();
}

« 4.3.15. Quote

4.3.17. Image »