does anyone know how to get the current cursor position in a paragraph of text, and possibly apply formatting to the character -1 of the position and +1 of the position...??
"This is my sentance"
if I place the cursor after the "s" in sentance..... and based on what key I press, eg: DEL or BACKSPACE I want to apply formatting...
if DEL key pressed, make the letter in front of the mouse position red
if BACKSPACE pressed, make the letter behind the cursor RED.
- I already have the code to get the keypresses, but dont have the code to get the letter and apply formatting to it!!!!
any help is much appreciated!!