robert_gsfame Posted May 10, 2010 Share Posted May 10, 2010 How can i bold text that is typed inside textarea thx Link to comment https://forums.phpfreaks.com/topic/201251-bold-textarea/ Share on other sites More sharing options...
robert_gsfame Posted May 10, 2010 Author Share Posted May 10, 2010 what i want is only give a html tag between the selected text so its almost like xxxx Link to comment https://forums.phpfreaks.com/topic/201251-bold-textarea/#findComment-1055815 Share on other sites More sharing options...
tomfmason Posted May 10, 2010 Share Posted May 10, 2010 you can make all of the text in the textarea bold but afaik there is no way to make selected words bold Link to comment https://forums.phpfreaks.com/topic/201251-bold-textarea/#findComment-1055825 Share on other sites More sharing options...
robert_gsfame Posted May 10, 2010 Author Share Posted May 10, 2010 What i want is almost like what we have in this forum when create a topic...you can easily give a bold tag between [b']highlighted text[/b'] this is what iam lookin for Link to comment https://forums.phpfreaks.com/topic/201251-bold-textarea/#findComment-1055830 Share on other sites More sharing options...
Alex Posted May 10, 2010 Share Posted May 10, 2010 It's called BBcode, look it up you can easily find examples on how to implement it. Link to comment https://forums.phpfreaks.com/topic/201251-bold-textarea/#findComment-1055846 Share on other sites More sharing options...
Ang3l0fDeath Posted May 10, 2010 Share Posted May 10, 2010 You can do this through javascript. I've done it before with smiley face for a chat room. You can do BOLD TEXT within a textarea, however you need javascript or something like PHP to automatically change/find/replace with <B> Its simply and easy. Can you give more act info on what you doing with that data and how your outputting it? Link to comment https://forums.phpfreaks.com/topic/201251-bold-textarea/#findComment-1055847 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.