Non risulti loggato.

4.3.16. Code

Gentile visitatore,
Benvenuto su 914-FORUM. Se questa è la tua prima visita, ti chiediamo di leggere la sezione Aiuto. Questa guida ti spiegherà il funzionamento di questa pagina. Prima di poter utilizzare tutte le funzioni di questo software dovrai registrarti. Usa la form di registrazione per registrarti adesso, oppure visualizza maggiori informazioni sul processo di registrazione. Se sei già un utente registrato, allora dovrai solamente procedere con il login da qui.

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 »