src/GenSynth.php
function enable_highlighting($flag = true)
    {
        $flag = $flag ? true : false;
        foreach ($this->lexic_permissions as $key => $value) {
            if (is_array($value)) {
                foreach ($value as $k => $v) {
                    $this->lexic_permissions[$key][$k] = $flag;
                }
            }
            else {
                $this->lexic_permissions[$key] = $flag;
            }
        }
    }
function enable_highlighting($flag = true)
    {
        $flag = $flag ? true : false;
        foreach ($this->lexic_permissions as $key => $value) {
            if (is_array($value)) {
                foreach ($value as $k => $v) {
                    $this->lexic_permissions[$key][$k] = $flag;
                }
            }
            else {
                $this->lexic_permissions[$key] = $flag;
            }
        }
    }
function enable_highlighting ( $ flag = true ) { $ flag = $ flag ? true : false ; foreach ( $ this -> lexic_permissions as $ key => $ value ) { if ( is_array ( $ value ) ) { foreach ( $ value as $ k => $ v ) { $ this -> lexic_permissions [ $ key ] [ $ k ] = $ flag ; } } else { $ this -> lexic_permissions [ $ key ] = $ flag ; } } }
Enables all highlighting

The optional flag parameter was added in version 1.0.7.21 and can be used
to enable (true) or disable (false) all highlighting.

@param boolean A flag specifying whether to enable or disable all highlighting

@todo  Rewrite with array traversal
Enables all highlighting