{"library":"reveal-ce","title":"Reveal-CE: Compiler Explorer Plugin for reveal.js","description":"reveal-ce is a plugin for reveal.js (v4+) that transforms C++ <code> blocks into interactive links to Compiler Explorer, allowing presenters to click code to open it in CE for live compilation and assembly. Current stable version is 1.3.0 (April 2026), with a release cadence of minor updates every few months. Key differentiators: supports hiding regions, setup regions, executor pane mode, regex-based code filtering, and per-block or global configuration of compilers and options. It integrates seamlessly with Highlight plugin and works with ESM modules in modern browsers. Compared to static code snippets, it enables on-the-fly exploration of compiler output and execution results directly from presentations.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install reveal-ce"],"cli":null},"imports":["import CompilerExplorer from './reveal-ce/index.js'","import Reveal from 'reveal.js'","import Highlight from 'reveal.js/plugin/highlight/highlight.esm.js'","<pre><code data-ce>code here</code></pre>"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import Reveal from './reveal.js/dist/reveal.esm.js';\nimport Highlight from './reveal.js/plugin/highlight/highlight.esm.js';\nimport CompilerExplorer from './reveal-ce/index.js';\n\nReveal.initialize({\n  ce: {\n    defaultCompiler: 'g142',\n    defaultCompilerOptions: '-O3',\n    defaultLanguage: 'c++',\n    defaultExecutor: false,\n    defaultRemoveRegex: ''\n  },\n  plugins: [CompilerExplorer, Highlight]\n});\n\n/* In HTML:\n<pre><code data-ce data-ce-compiler=\"g142\" data-ce-options=\"-O3\" data-ce-language=\"c++\">\n  int multiply(int a, int b) {\n    return a * b;\n  }\n</code></pre>\n*/","lang":"javascript","description":"Installs and configures the reveal-ce plugin with a default compiler, options, and language; then shows a code block that opens in Compiler Explorer on click.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}