highlightjs-highlight-lines.js Examples with highlightjs-line-numbers.js

Example 1

            #include <stdio.h>

void print_text(char[] text) {
    printf("%s\n", text);
}

int main() {
    printf("hoge\n");
    print_text("foobar");
    return 0;
}
        

Example 2 (using transparency)

            # coding: utf-8

def main():
    print('hoge')


if __name__ == '__main__':
    main()
        

Example 3 (scroll)

                #include <iostream>
auto main() -> int {
    using namespace std;
    cout << "this is too long sentence......" << endl;
    return 0;
}