Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author maximebj

    (@maximebj)

    Hello !

    you can add your own language support by following theses steps: https://advanced-gutenberg-blocks.com/block/code-block/

    <?php
    function my_custom_languages( $languages ) {
    $languages[] = array(‘slug’ => ‘powershell’, ‘mode’ => ‘powershell’, ‘label’ => ‘Powershell’) ;

    return $languages;
    }
    add_filter( ‘advanced_gutenberg_blocks_code_languages’, ‘my_custom_languages’ );

    If other people ask for it, I’ll add it in the default list!

    Thread Starter Camilo

    (@camilo517)

    It would be great to add it, powershell and sql 😉

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Code block – Powershell’ is closed to new replies.