• Steam recently changed the default privacy settings for all users. This may impact tracking. Ensure your profile has the correct settings by following the guide on our forums.

Posting Guidelines

Status
Not open for further replies.

EvilSeph

Administrator
Along with any other general forum guidelines we have in place within our community, these should be taken into account (not really rules, but more of a "how to post properly to get the best responses"):

Choose the appropriate thread prefix for the language you are discussing.
If it does not exist or you are going to be discussing multiple languages, you should choose the "Other" prefix. If one does not exist, and there is demand for it let us know and we'll add it.

For specific platforms:
If the discussion you are going to be starting involves a specific platform, please add it to the title and as a tag in a logical part of your thread title.

Guides, Tutorials, etc.:
When writing a tutorial or guide of some sort, we ask that you prefix your thread with "Tutorial: " or "Guide: " so that we may easily recognise such contributions in case we need to organise them later or so that it makes it easier for people to find such contributions.

Posting Code:
When posting code, we ask that you please make use of our sweet looking syntax highlighter. If you do not know how to use it, you simply use the following tag:
[noparse][highlight=language]Code to highlight[/highlight][/noparse]

Supported Languages:
Supported Languages:
ABAP - abap
Actionscript - actionscript or actionscript3
ADA - ada
Apache Log - apache
AppleScript - applescript
APT sources.list - apt_sources
ASM (m68k) - m68k
ASM (Microchip Assembler) - mpasm
ASM (pic16) - pic16
ASM (x86) - asm
ASM (z80) - z80
ASP - asp
AutoIT - autoit
AviSynth - avisynth
Backus-Naur form - bnf
Bash - bash
Basic4GL - basic4gl
BlitzBasic - blitzbasic
Boo - boo
Brainfuck - bf
C - c
C for Macs - c_mac
C# - csharp
C++ - cpp
C++ (with QT) - cpp-qt
CAD DCL - caddcl
CadLisp - cadlisp
CFDG - cfdg
CIL / MSIL - cil
COBOL - cobol
ColdFusion - cfm
CSS - css
D - d
Delphi - delphi
Diff File Format - diff
DIV - div
DOS - dos
DOT language - dot
Eiffel - eiffel
Email - email
Fortran - fortran
FourJ's Genero - genero
FreeBasic - freebasic
GetText - gettext
glSlang - glsl
GML - gml
gnuplot - gnuplot
Groovy - groovy
Haskell - haskell
HQ9+ - hq9plus
HTML - html4strict
INI (Config Files) - ini
Inno - inno
INTERCAL - intercal
IO - io
Java - java
Java 5 - java5
Javascript - javascript
KiXtart - kixtart
KLone C & C++ - klonec or klonecpp
LaTeX - latex
Lisp - lisp
LOLcode - lolcode
LotusScript - lotuscript
Lotus Formulas - lotusformulas
LScript - lscript
Lua - lua
Make - make
Matlab - matlab
mIRC - mirc
MXML - mxml
MySQL - mysql
NSIS - nsis
Objective C - objc
OCaml - ocaml or ocaml-brief
OpenOffice BASIC - oobas
Oracle 8 & 11 SQL - oracle8 or oracle11
Pascal - pascal
Perl - perl
PHP - php or php-brief
Pixel Bender - pixelbender
PL/SQL - plsql
Plaintext - text
POV-Ray - povray
PowerShell - powershell
Progress (OpenEdge ABL) - progress
Prolog - prolog
ProvideX - providex
Python - python
Q(uick)BASIC - qbasic
robots.txt - robots
Ruby - ruby
Ruby on Rails - rails
SAS - sas
Scala - scala
Scheme - scheme
Scilab - scilab
SDLBasic - sdlbasic
Smalltalk - smalltalk
Smarty - smarty
SQL - sql
T-SQL - tsql
TCL - tcl
Tera Term - teraterm
thinBasic - thinbasic
TypoScript - typoscript
Uno IDL - idl
VB.NET - vbnet
Verilog - verilog
VHDL - vhdl
VIM Script - vim
Visual BASIC - vb
Visual Fox Pro - visualfoxpro
Visual Prolog - visualprolog
Whitespace - whitespace
Winbatch - winbatch
Windows Registry Files - reg
X++ - xpp
XML - xml
Xorg.conf - xorg_conf

For example, use this:
[noparse][highlight=php]Code to highlight[/highlight][/noparse]

And you'll get something like this:
[highlight=php] /**
* Returns the code in $this->source, highlighted and surrounded by the
* nessecary HTML.
*
* This should only be called ONCE, cos it's SLOW! If you want to highlight
* the same source multiple times, you're better off doing a whole lot of
* str_replaces to replace the <span>s
*
* @since 1.0.0
*/
function parse_code () {
// Start the timer
$start_time = microtime();

// Firstly, if there is an error, we won't highlight
if ($this->error) {
//Escape the source for output
$result = $this->hsc($this->source);

//This fix is related to SF#1923020, but has to be applied regardless of
//actually highlighting symbols.
$result = str_replace(array('<SEMI>', '<PIPE>'), array(';', '|'), $result);

// Timing is irrelevant
$this->set_time($start_time, $start_time);
$this->finalise($result);
return $result;
}
}[/highlight]

Lastly, if you have ANY suggestions to improve this section or any part of the community or site in general, please do not hesitate to let us know!
 
Status
Not open for further replies.
Top