Skip to main content

Syntax-Hervorhebung von Sprachen für PDFs

Mit dem Attribut language können Sie Codebeispielen eine bestimmte Programmiersprache zuweisen. So können Sie einem programlisting-Element das Attribut language geben und dessen Wert auf javascript setzen.

Informationen zum Hinzufügen des Attributs language finden Sie unter Syntax-Hervorhebung für PDF.

Die folgende Tabelle enthält die Werte, die Sie für das Attribut language festlegen können. Für einige Sprachen können Sie einen von mehreren Werten verwenden, die in der Tabelle durch ein Komma getrennt sind. Es sollte jeweils nur genau ein Wert ausgewählt werden, z. B. können Sie für JavaScript entweder „js“ oder „javascript“ eingeben.

Sprache

Wert für das Attribut „language“

ABAP

abap

ABNF

abnf

ActionScript

as, actionscript

ActionScript 3

as3, actionscript3

Ada

ada, ada95, ada2005

ADL

adl

Agda

agda

Alloy

alloy

AmbientTalk

at, ambienttalk, ambienttalk/2

ANTLR

antlr

ANTLR mit ActionScript-Ziel

antlr-as, antlr-actionscript

ANTLR mit CPP-Ziel

antlr-cpp

ANTLR mit C#-Ziel

antlr-csharp, antlr-c#

ANTLR mit Java-Ziel

antlr-java

ANTLR mit ObjectiveC-Ziel

antlr-objc

ANTLR mit Perl-Ziel

antlr-perl

ANTLR mit Python-Ziel

antlr-python

ANTLR mit Ruby-Ziel

antlr-ruby, antlr-rb

ApacheConf

apacheconf, aconf, apache

APL

apl

AppleScript

applescript

Arduino

arduino

AspectJ

aspectj

Aspx-cs

aspx-cs

Aspx-vb

aspx-vb

Asymptote

asy, asymptote

Autohotkey

ahk, autohotkey

AutoIt

autoit

Awk

awk, gawk, mawk, nawk

Basemake

basemake

Bash

bash, sh, ksh, shell

Bash Session

console, shell-session

Batchfile

bat, batch, dosbatch, winbatch

BBCode

bbcode

BC

bc

Befunge

befunge

BlitzBasic

blitzbasic, b3d, bplus

BlitzMax

blitzmax, bmax

BNF

bnf

Boo

boo

Boogie

boogie

Brainfuck

brainfuck, bf

Bro

bro

BUGS

bugs, winbugs, openbugs

C

c:

C#

csharp, c#

C++

cpp, c++

CA65 Assembler

ca65

cADL

cadl

CAmkES

camkes, idl4

CBM BASIC V2

cbmbas

Ceylon

ceylon

CFEngine3

cfengine3, cf3

Cfstatement

cfs

ChaiScript

chai, chaiscript

Chapel

chsprl, chpl

Cheetah

cheetah, spitfire

Cirru

cirru

Clay

clay

Clojure

Clojure, clj

ClojureScript

clohurescript, cljs

CMake

cmake

C-Objdump

c-objdump

COBOL

cobol

COBOLFree

cobolfree

Coffee-script

coffee-script, coffeescript, coffee

Coldfusion CFC

cfc

Coldfusion HMTL

cfm

Common Lisp

common-lisp, cl, lisp

Component Pascal

componentpascal, cp

Control, Debian Control

control, debcontrol

Coq

coq

Cpp-Objdump

cpp-objdump, c++-objdumb, cxx-objdump

CPSA

cpsa

Crmsh

crmsh, pcmk

Croc

croc

Cryptol

cryptol, cry

Csound Document

csound-document, csound-csd

Csound Orchestra

csound, csound-orc

Csound Score

csound-score, csound-sco

CSS

css

CSS+Django, CSS+Jinja

css+django, css+jinja

CSS+Erb, CSS+Ruby

css+erb, css+ruby

CSS+Genshitext, CSS+Genshi

css+genshitext, css+genshi

CSS+Lasso

css+lasso

CSS+Mako

css+mako

CSS+Mozpreproc

css+mozpreproc

CSS+Myghty

css+myghty

CSS+PHP

css+php

CSS+Smarty

css+smarty

CUDA

cuda, cu

Cypher

cypher

Cython

cython, pyx, pyrex

D

d

Dart

dart

Debian Sourcelist

sourceslist, sources.list, debsources

Delphi

delphi, pas, pascal, objectpascal

DG

dg

Diff

diff, udiff

Django/Jinja

django, jinja

D-Objdump

d-objdump

Docker

dockerfile, docker

Dpatch

dpatch

DTD

dtd

Duel

duel, jbst, jsonml+bst

Dylan

dylan

DylanLID

dylan-lid, lid

Dylan Session

dylan-console, dylan-repl

Earl Grey

earl-grey, earlgrey, eg

Easytrieve

easytrieve

EBNF

ebnf

eC

ec

ECL

ecl

Eiffel

eiffel

Eigenschaften

properties, jproperties

Elixir

elixir, ex, exs

Elixir iex Sitzung

iex

Elm

elm

EmacsLisp

emacs, elisp, emacs-lisp

ERB

erb

Erlang

erlang

Erlang ERL-Sitzung

erl

Evoque

evoque

Ezhil

ezhil

Faktor

Faktor

Fancy

fancy, fy

Fantom

fan

Felix

felix, flx

Fish

fish, fishshell

Fortran

fortran

FortranFixed

fortranfixed

FoxPro, VFP, Clipper, XBase

foxpro, vfp, clipper, xbase

FSharp

fsharp

GAP

gap

GAS

gas, asm

Genshi

genshi, kid, xml+genshi, xml+kid

Genshi Text

genshitext

Gettext Catalog

pot, po

Gherkin

cucumber, gherkin

GLSL

glsl

Gnuplot

gnuplot

Go

go

Golo

golo

GoodData-CL

gooddata-cl

Gosu

gosu

Gosu-Vorlage

gst

Groff

groff, nroff, man

Groovy

groovy

Haml

haml

Handlebars

Handlebars

Haskell

haskell, hs

Haxe

hx, haxe, hxsl

Hexdump

Hexdump

HTML

html

HTML+Cheetah

html+cheetah, html+spitfire, htmlcheetah

HTML+Django/Jinja

html+django, html+jinja, htmldjango

HTML+Evoque

html+evoque

HTML+Genshi

html+genshi, html+kid

HTML+Handlebars

html+handlebars

HTML+Lasso

html+lasso

HTML+Mako

html+mako

HTML+Myghty

html+myghty

HTML+PHP

html+php

HTML+Smarty

html+smarty

HTML_Twig

html+twig

HTML+Velocity

html+velocity

HTTP

http

HXML

haxeml, hxml

Hy

hylang

Hybris

hybris, hy

IDL

idl

Idris

idris, idr

Igor

igor, igorpro

Inform 6

inform6, i6

Inform 6 Vorlage

i6t

Inform7, i7

inform7, i7

INI

ini, cfg, dosini

Io

io

Ioke

ioke, ik

IRC-Protokolle

irc

Isabelle

isabelle

J

j

Jade

jade

JAGS

jags

Jasmin

jasmin, jasminxt

Java

java

JavaScript

js, javascript

JavaScript+Cheetah

js+cheetah, javascript+cheetah, js+spitfire, javascript+spitfire

JavaScript+Django/Jinja

js+django, javascript+django, js+jinja, javascript+jinja

JavaScript+Genshitext

js+genshitext, js+genshi, javascript+genshitext, javascript+genshi

JavaScript+Lasso

js+lasso, javascript+lasso

JavaScript+Mako

js+mako, javascript+mako

Javascript+Mozpreproc

javascript+mozpreproc

JavaScript+Myghty

js+myghty, javascript+myghty

JavaScript+PHP

js+php, javascript+php

Javascript+Ruby

js+erb, javascript+erb, js+ruby, javascript+ruby

JavaScript+Smarty

js+smarty, javascript+smarty

Java Server Seite

jsp

JCL

jcl

JLCON Julia Console

jlcon

JSON

json

JSON-LD

jsonld, json-ld

Julia

julia, jl

Kal

kal

Kconfig

kconfig, menuconfig, linux-config, kernel-config

Koka

koka

Kotlin

kotlin

Lasso

lasso, lassoscript

Lean

lean

LessCSS

less

Lighttpd-Konfiguration

lighty, lighttpd

Limbo

limbo

Liquid

liquid

Literate Cryptol

lcry, literate-cryptol, lcryptol

Literate-Haskell

lhs, literate-haskell, lhaskell

Literate Idris

lidr, literate-idris, lidris

Literate Lagda

lagda, literate-agda

Live-Script

live-script, livescript

LLVM

llvm

Logos

logos

Logtalk

logtalk

LSL

lsl

Lua

lua

Makefile

make, makefile, mf, bsdmake

Mako

mako

MAQL

maql

Mask

mask

Mason

mason

Mathematica

mathematica, mma, nb

Matlab

matlab

Matlab-Sitzung

matlabsession

MiniD

minid

Modelica

modelica

Modula-2

modula2, m2

MoinMoin/Trac Wiki-Markup

trac-wiki, moin

Monkey

monkey

MOOCode

moocode, moo

MoonScript

moon, moonscript

Mozhashpreproc

mozhashpreproc

Mozpercentpreproc

mozpercentpreproc

MQL

mql, mq4, mq5, mql4, mql5

Mscgen

mscgen, msc

MSDOS-Sitzung

doscon

MuPAD

mupad

MXML

mxml

Myghty

myghty

MySQL

mysql

NASM

nasm

Nemerle

nemerle

nesC

nesc

NewLisp

newlisp

Newspeak

newspeak

Nginx-Konfiguration

nginx

Nimrod

nimrod, nim

Nit

nit

Nix

nixos, nix

NSIS

nsis, nsi, nsh

NumPy

numpy

Nur Text

text

Objdump

objdump

Objdump-nasm

objdump-nasm

Objective-C

objective-c, objectivec, obj-c, objc

Objective-C++

objective-c++, objectivec++, obj-c++, objc++

Objective-J

objective-j, objectivej, obj-j, objj

OCaml

ocaml

Octave

octave

ODIN

odin

Ooc

ooc

Opa

opa

OpenEdge ABL

openedge, abl, progress

PacmanConf

pacmanconf

Pan

pan

Parasail

parasail

Pawn

pawn

Perl

perl, pl

Perl6

perl6, pl6

PHP

php, php3, php4, php5

Pig

pig

Pike

pike

PkgConfig

pkgconfig

plpgsql

PL/pgSQL

PostgreSQL

postgresql, postgres

PostgreSQL console

psql, postgresql-console, postgres-console

PostScript

postscript, postscr

POVRay

pov

PowerShell

powershell, posh, ps1, psm1

PowerShell-Sitzung

ps1con

Praat

praat

Prolog

prolog

Protocol Buffer

protobuf,proto

Puppet

puppet

Python 3

python3, py3

Python 3.0 Traceback

py3tb

Python-Konsolensitzung

pycon

QBasic

qbasic, basic

QML

qml, qbs

QVTO

qvto, qvt

Racket

racket, rkt

Ragel

ragel

Ragel – eingebettet

ragel-em

Ragel in C Host

ragel-c

Ragel in CPP Host

ragel-cpp

Ragel in D Host

ragel-d

Ragel in Java Host

ragel-java

Ragel in Objective C Host

ragel-objc

Ragel in Ruby Host

ragel-ruby, ragel-rb

Raw token data

raw

RConsole

rconsole, rout

Rd

rd

REBOL

rebol

Red

red, red/system

Redcode

redcode

Reg

registry

ResourceBundle

resource, resourcebundle

reStructuredText

rst, rest, restructuredtext

Rexx

rexx, arexx

RHTML

rhtml, html+erb, html+ruby

Roboconf Graph

roboconf-graph

Roboconf Instances

roboconf-instances

RobotFramework

robotframework

RPMSpec

spec

RQL

rql

RSL

rsl

Ruby

rb, ruby, duby

Ruby irb Sitzung

rbcon, irb

Rust

rust

S

splus, s, r

Sass

sass

Scala

scala

Scalate Server Page

ssp

Scaml

scaml

Scheme

scheme, scm

Scilab

scilab

SCSS

scss

Shen

shen

Slim

slim

Smali

smali

Smalltalk

smalltalk, squeak, st

Smarty

smarty

Snobol

snobol

SourcePawn

sp

SPARQL

sparql

SQL

sql

sqlite3con

sqlite3

SquidConf

squidconf, squid.conf, squid

Stan

stan

Standard ML

sml

SuperCollider

sc, supercollider

SWIG

swig

systemverilog

systemverilog, sv

TADS 3

tads3

TAP

tap

Tcl

tcl

Tcsh

tcsh, csh

Tea

tea

Termcap

termcap

Terminfo

terminfo

Terraform

terraform, tf

TeX

tex, latex

Thrift

thrift

Todotxt

todotxt

TrafficScript

rts, trafficscript

Treetop

treetop

Turtle

turtle

Twig

twig

TypeScript

ts, typescript

UrbiScript

urbiscript

Vala

vala, vapi

VB.net

vb.net, vbnet

VCTreeStatus

vctreestatus

Velocity

velocity

Verilog, v

verilog, v

VGL

vgl

vhdl

vhdl

VimL

vim

X10

x10, xten

XML

xml

XML+Cheetah

xml+cheetah, xml+spitfire

XML+Django/Jinja

xml+django, xml+jinja

XML+Evoque

xml+evoque

XML+Lasso

xml+lasso

XML+Mako

xml+mako

XML+Myghty

xml+myghty

XML+PHP

xml+php

XML+Ruby

xml+erb, xml+ruby

XML+Smarty

xml+smarty

XML+Velocity

xml+velocity

XSLT

xslt

xsltXQuery

xquery, xqy, xq, xql, xqm

Xtend

xtend

XUL+mozpreproc

xul+mozpreproc

YAML

yaml

YAML+Jinja

yaml+jinja, salt, sls

Zephir

zephir