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

  • SEARCH
  • Home
  • 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 327229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:22:58+00:00 2026-05-12T09:22:58+00:00

You can specify equations using <equation> and also several others, but what tag must

  • 0

You can specify equations using <equation> and also several others, but what tag must be used to specify code? More specifically, PHP, HTML, CSS and Javascript? Is there a plugin that you can use with OxygenXML to add these features automatically? I need to output as PDF.

  • 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-12T09:22:58+00:00Added an answer on May 12, 2026 at 9:22 am

    I’m working on a project which uses docbook, and has examples in PHP.

    The examples in PHP are using programlisting tag, like this :

    <programlisting language="php"><![CDATA[<?php
    
    // Here goes the PHP code
    
    ]]></programlisting>
    

    Note the language attribute.

    It is used later by another tool to add syntax-coloration, when generating the ouput (for HTML output, at least)

    For examples that are not specific to one programming language, like configuration files, we are using the screen tag ; for instance, for a part of an Apache-related config file, an example would be :

    <screen><![CDATA[# Setup Listening Port
    NameVirtualHost *:80
    
    # Ensure "localhost" is preserved unchanged pointed
    # to the default document root for our system.
    <VirtualHost *:80>
        ServerName localhost
        DocumentRoot /var/www
    </VirtualHost>]]></screen>
    

    Quoting their documentations :

    A programlisting is a verbatim
    environment for program source or
    source fragment listings. The
    programlistings are often placed in
    examples or figures so that they can
    be cross-referenced from the text.

    And :

    A screen is a verbatim environment for
    displaying text that the user might
    see on a computer terminal. It is
    often used to display the results of a
    command.

    Having less specific semantic
    overtones, screen is often used
    wherever a verbatim presentation is
    desired, but the semantic of
    programlisting is inappropriate.

    So, these two seem quite appropriate.

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

Sidebar

Related Questions

I know I can specify a node another document using XPointer: http://www.google.com/#xpointer(...) But, can
In code one can specify globally accessible constants/enums/etc once that can then be reused
Using the WCF web programming model one can specify an operation contract like so:
in a java webstart file (jnlp) you can specify the nativelib tag to load
When using Ninjects ConstructorArgument you can specify the exact value to inject to specific
I can specify a comma field seperator in BCP by using the options -c
The HTTP Accept header can specify priority using the q specifier, such as application/xml;q=0.8
i'm trying to compute the Lorenz system using Runge Kutta method, but i can't
I know I can specify it in the configuration XML, but I'd like to
I need help on how i can specify an array name or key using

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.