• We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      I record a lot of sysadmin scripts into Confluence. The

       macro is nice for this but the Bash scripts end up looking a little weird with Java highlighting.  XML and SQL are even worse.
      
      I'd really like to see bash/sh syntax supported in the 

      macro. Even better would be if the

      
      

      macro used some extensible highlighter library like jedit-syntax or Colorer.

      http://sourceforge.net/projects/jedit-syntax/

      http://colorer.sourceforge.net/

            [CONFSERVER-2794] Support Bash script syntax highlighting in {code} macro

            The new code macro bundled in Confluence 3.5 supports shell (bash) formatting.

            Matt Ryall added a comment - The new code macro bundled in Confluence 3.5 supports shell (bash) formatting.

            Is there any news regarding this issue or maybe another, resolved issue or information about this?

            Menno Bieringa added a comment - Is there any news regarding this issue or maybe another, resolved issue or information about this?

            Turadg Aleahmad added a comment - Maybe JHighlight can help http://www.theserverside.com/news/thread.tss?thread_id=39415

            Possible problems: jedit-syntax seems from initial inspection to be tightly coupled to being a Swing text control, and colorer is a C library with Java bindings.

            Charles Miller (Inactive) added a comment - Possible problems: jedit-syntax seems from initial inspection to be tightly coupled to being a Swing text control, and colorer is a C library with Java bindings.

            The interface for

            
            

            syntax highlighters in 1.4 is:

            package com.atlassian.renderer.v2.macro.code;

            public interface SourceCodeFormatter
            {
            String[] getSupportedLanguages();

            String format(String code, String language);
            }

            format() takes in the source, and returns HTML.

            We need to

            • make formatters pluggable via the regular plugin architecture.
            • write a jedit-syntax formatter plugin (and maybe a colorer formatter plugin as well?)

            Charles Miller (Inactive) added a comment - The interface for syntax highlighters in 1.4 is: package com.atlassian.renderer.v2.macro.code; public interface SourceCodeFormatter { String[] getSupportedLanguages(); String format(String code, String language); } format() takes in the source, and returns HTML. We need to make formatters pluggable via the regular plugin architecture. write a jedit-syntax formatter plugin (and maybe a colorer formatter plugin as well?)

              jclark@atlassian.com Joe Clark
              1f642757949b Turadg Aleahmad
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: