• code-section : empty (will wait for content), user-provided id

  • code-section : text content, with language detection (auto)

    ⓘ Note:

    Currently, C++ trailing-return-type is considered as an illegale synthax by highlight-js
        See the issue here (highlight.js/issues/3673).
        In such case, a fallback detection strategy is then used, but is not likely to be appropriate
    • code-section : text content (language detection failure: no syntax highlighting)

    • code-section : text content (language detection success)

  • code-section : text content (large)

  • code-section : text content + language attribute

  • code-section : language + code attributes

  • code-section : url (external code)

    • network: unreachable

      ⓘ Note:

      Relevant JS console error:
          [object ace.API.HTMLElements.CodeSection/ace-cs(id=cs_5)].set(url): network error:
              [object ace.details.utility].fetch_resource: bad request status 404 on url [/DOES_NOT_EXISTS]
    • network: reachable

    • network: reachable, immediatly executed

  • code-section : language, execution

    • compilation success

    • compilation error

      ⓘ Note:

      Relevant error status:
              JS:  ace_cs_element.ace_panels.execution.getAttribute('status') === 'failure-compilation'
              CSS: ace-cs > ace-cs-code-mvc[id$='.panels.execution'][status|='failure']
    • error : missing configuration (c vs. cpp)

      ⓘ Note:

      Relevant error status:
              JS:  ace_cs_element.ace_panels.panels.right.getAttribute('status') === 'error-compilation'
              CSS: ace-cs > [id$='.panels.right'][status='error']
  • code-section : language, execution, column orientation

    ⓘ Note:

    Alternatively, setting the style value style="flex-direction: column" also works
  • code-section : parsing (render and/or execute only what is relevant for the audience)

  • code-section : mixing html entities and regular chars (<, >, ", &)

  • ⓘ Issue:

    There is currently an issue with escaped sequences of characters (help welcome)
    - godbolt API /clientstate call works well
    - but not api/compiler/.../compile
                
  • code-section : critical error (no recovery possible)

    ⓘ Note:

    Such error is quite hard to illustrate with an example.
    Mostly likely scenari are either a critical network while calling the Compiler-Explorer API,
    or some input code used in conjunction with toggle_parsing="true", which breaks the meta-data parser