Linkify

A Reveal.js plugin to automatically create links to online compilers


                        #include <iostream>

                        int main() {
                            std::cout << "Hello, world!\n";
                        }
                    

                        console.log("Hello, world!");
                    
Now available for C++ (using Godbolt) and for JavaScript (on Codepen)!

From HTML


                        #include <iostream>

                        int main() {
                            std::cout << "Hello, world from html!\n";
                        }
                    
#### From Markdown ```cpp #include <iostream> int main() { std::cout << "Hello, world from markdown!\n"; } ```
#### With Line Numbers ```cpp [4-6|7-11] #include <iostream> int main() { std::cout << "Input a number: "; int i; std::cin >> i; if (i >= 0) { std::cout << "Your number is non-negative!\n"; } else { std::cout << "Your number is negative!\n"; } } ```
#### Easy to Setup and Configure ```js Reveal.initialize({ // ... linkify: { // Linkify Configuration }, plugins: [ /* ..., */ Linkify ] }); ```

Links

Source & Documentation

Thanks for using Linkify!