T
T
Tomaszz2018-04-01 13:04:51
Syntax highlighting
Tomaszz, 2018-04-01 13:04:51

How to implement syntax highlighting of the code on the site?

Please tell me a module (script) for syntax highlighting code of popular programming languages ​​with the ability to adjust the tab size .
For example, a tab of 4 spaces

#include <stdio.h>

int main()
{
    printf("hello, world\n");
    return 0;
}

Tab 8 spaces
#include <stdio.h>

int main()
{
        printf("hello, world\n");
        return 0;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kalibrov, 2018-04-27
@rework

Look at the plugin https://highlightjs.org/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question