0

if i write a double quote in a string with single quotes, i want electric-pair-mode to write another double quote. Example:

<?php
    class test {
        public function test2() {
    
            $q = " where val = 'radio' ";
    
        }
    }
?>

my goal is to write the following:

            $q = " where ".$r." and val = 'radio' ";

after i write the first double quote after 'where', electric-pair-mode should automatically insert a second double quote. namely like this:

            $q = " where "" and val = 'radio' ";

but this does not work. what i have to do to make electric-pair-mode work the way i want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.