History log of /dokuwiki/inc/parser/code.php (Results 1 – 16 of 16)
Revision Date Author Comments
# faf3f01b 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to inc/parser


# 8cbc5ee8 10-Jun-2019 Andreas Gohr <andi@splitbrain.org>

replaced deprecated utf8 functions

For now this uses full qualified namespaces, sensible imports may come
later.


# de369923 28-Apr-2018 Andreas Gohr <andi@splitbrain.org>

visibility definition for the renderers

I made a lot of things public that probaly should be protected. But many
syntax plugins do access renderer mechanisms directly, so better stay on
the safe sid

visibility definition for the renderers

I made a lot of things public that probaly should be protected. But many
syntax plugins do access renderer mechanisms directly, so better stay on
the safe side here.

The base renderer is now abstract.

show more ...


# b4f2363a 27-Apr-2018 Andreas Gohr <andi@splitbrain.org>

remove DOKU_INC checks

There is no need for this check, since these files should not have any
main code that is executed on direct call.

Fixes PSR1.Files.SideEffects.FoundWithSymbols


# 56bd9509 17-Aug-2017 Phy <git@phy25.com>

Fix sanitation of $language for code highlighting (fixes #2080)


# f50a239b 31-Mar-2017 Takamura <plehanov.v@gmail.com>

I supplemented the existing comments on the methods in which there was not enough information to the standard phpDoc.


# ece4159b 27-Sep-2014 Andreas Gohr <andi@splitbrain.org>

Send CRLF to Windows UAs for code blocks #863


# 77839717 24-May-2014 Andreas Gohr <andi@splitbrain.org>

more reformatting


# 2ada8709 25-Feb-2014 Christopher Smith <chris@jalakai.co.uk>

add renderers to autolader


# 0ea51e63 23-Aug-2013 Matt Perry <matt@mattperry.com>

Fix CodeSniffer violations for PHP files

Fix violations for Generic.PHP.LowerCaseConstant.Found


# 2d3f0c16 19-Apr-2013 Andreas Gohr <andi@splitbrain.org>

strip specials from file name in codeblock downloads FS#2757


# 9d2e1be6 16-Feb-2013 Andreas Gohr <andi@splitbrain.org>

introduced http_status() for sending HTTP status code FS#1698

It seems, some servers require a special Status: header for sending the
HTTP status code from PHP (F)CGI to the server. This patch intro

introduced http_status() for sending HTTP status code FS#1698

It seems, some servers require a special Status: header for sending the
HTTP status code from PHP (F)CGI to the server. This patch introduces a
new function (adopted from CodeIgniter) for simplifying the status
handling.

show more ...


# 3009a773 28-Jul-2012 Andreas Gohr <andi@splitbrain.org>

replaced use of basename() with utf8_basename() FS#2015


# f0859d4b 29-Jun-2012 Tom N Harris <tnharris@whoopdedo.org>

Input wrapper for html forms


# f9d4952b 26-Jul-2009 Andreas Gohr <andi@splitbrain.org>

fixed filename support in <file> syntax

Ignore-this: 59bec5f55f7d0eb26d454d76da750142

darcs-hash:20090726185025-7ad00-1577f684e585c849fda9505ccad98735f0c7bb76.gz


# 3d491f75 26-Jul-2009 Andreas Gohr <andi@splitbrain.org>

enhanced <code> and <file> syntax

Ignore-this: 80398f84222bec1fce56eee8f107d37a

This patch enhances the code and file syntax with several new features.

1. code and file are now essentially the sam

enhanced <code> and <file> syntax

Ignore-this: 80398f84222bec1fce56eee8f107d37a

This patch enhances the code and file syntax with several new features.

1. code and file are now essentially the same and just differ in the class
name. This means you now can use the file syntax with syntax highlighting
as well. This also solves problems where the code to highlight already
contains a <code> tag (FS#1493)

2. a filename can be given as label for the code or file block. It is
specified as second parameter after the language:

<code html myfile.html>...</code>

If no highlighting is wanted, but a filename shall be given, you can use
a dash as language:

<code - somefile.foo>...</code>

3. when a filename was given (as shown above), the label links to a
download of the code given in the code/file block. This is made possible
by a new renderer in inc/parser/code.php. The basename of given filename
is suggested as filename when downloading.

darcs-hash:20090726175158-7ad00-969641a06ae1393a6d99207c3cd938fb67f23a71.gz

show more ...