ASF GitHub Bot commented on CAMEL-12422:

GitHub user fbolton opened a pull request:


    CAMEL-12422 Fixed language declaration for code snippets in documenta…


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/fbolton/camel camel-12422

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2280
commit 6d9e172de7572038529b394f4159f5693225389c
Author: Fintan Bolton <fbolton@...>
Date:   2018-04-04T15:18:22Z

    CAMEL-12422 Fixed language declaration for code snippets in documentation


> Wrong language syntax declarations for code samples in documentation
> --------------------------------------------------------------------
>                 Key: CAMEL-12422
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12422
>             Project: Camel
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 2.21.1
>            Reporter: Fintan Bolton
>            Priority: Major
> AsciiDoc has the ability to support syntax highlighting, which can be enabled 
> by putting the following line before a code sample (e.g. for Java code):
> {code:java}
> [source,java]{code}
> However, there are some places in the documentation where this declaration is 
> used, but the code sample that follows is _not_ Java. This can cause 
> incorrect syntax highlighting or (more seriously) can sometimes cause a 
> documentation build to crash. The following doc files are affected:
> * {{csv-dataformat.adoc}}
> * {{mime-multipart-dataformat.adoc}}
> * {{mongodb-gridfs-component.adoc}}
> * {{snmp-component.adoc}}
> I plan to submit a PR to fix these files.

This message was sent by Atlassian JIRA

Reply via email to