How to put other programming languages?

Solved2.03K viewsIssues
0

I need where to insert the code to supplement with other programming languages how can I do this help please help!!!!

Question is closed for new answers.
Selected answer as best
0

I am afraid this will be bit complicated. Firstly, you have to add this code to your theme functions.php

add_action( 'wp', function(){
    AnsPress\Addons\Syntax_Highlighter::get_instance()->brushes[] = 'kotlin';
    AnsPress\Addons\Syntax_Highlighter::get_instance()->brushes[] = 'java';
});


Then you have to upload brush js/css to wp-content/plugins/anspress-question-answer/addons/syntaxhiglighter/syntaxhighlighter.
You can find additional brushes here: https://github.com/syntaxhighlighter

Selected answer as best