Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6234543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:30:21+00:00 2026-05-24T10:30:21+00:00

I have a running dokuwiki and am working with code-blocks like: <code php> <?php

  • 0

I have a running dokuwiki and am working with code-blocks like:

<code php>
<?php

 function addOne($testparam) {
  global $test;
  $test = $test + $testparam;
 }

?>
</code>

I now would like to highlight single lines of codes (like for example lines where something has changed).

My idea was to introduce a new Syntax-Keyword in the PHP language file php.php:

...
$language_data = array(
    'LANG_NAME' => 'PHP',
    'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
    'COMMENT_MULTI' => array('/*' => '*/'),
    'COMMENT_GESHI' => array('**' => '**'),   // new source
...
        'STYLES' => array(
            'KEYWORDS' => array(
                1 => 'color: #b1b100;',
                2 => 'color: #000000; font-weight: bold;',
                3 => 'color: #990000;',
                4 => 'color: #009900; font-weight: bold;'
                ),
            'COMMENTS' => array(
                1 => 'color: #666666; font-style: italic;',
                2 => 'color: #666666; font-style: italic;',
                3 => 'color: #0000cc; font-style: italic;',
                4 => 'color: #009933; font-style: italic;',
                'MULTI' => 'color: #666666; font-style: italic;',
                'GESHI' => 'color: #00ffff; font-weight: bold;'
                ),
...

Anyway that does not seem to have any effect.

Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:30:22+00:00Added an answer on May 24, 2026 at 10:30 am

    DokuWiki does not use inline styles when rendering GeSHi. Instead common class names for all code languages are used and styled with a single, simple set of rules in lib/styles/screen.css.

    You can add or overwrite the GeSHi styling in your conf/userstyle.css (create the file and make sure to refresh DokuWiki’s cache).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been running SQL Server 2005 Express Management Studio (SSMSE), and I now
I have been running Visual Studio 2008 Team Edition for some time now and
I have running Svn on GNU/Linux. it is working fine when i executing my
I have Apache running on a public-facing Debian server, and am a bit worried
I have been running Apache HTTPD in 64bit mode by stripping out the 32bit
I have SBCL running on a Ubuntu machine. I want to write a little
I have two running processes in Windows, and each process has a pipe to
We have IIS6 running on a 64-bit Windows 2003 server with 32Gb physical RAM.
Assume that you have a running SQL Server Express instance named (local)\SQLEXPRESS. Its database
I have some scripts that ought to have stopped running but hang around forever.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.