added getsyntax function to get current settings at cursor