Alexander Stolte Expert Licensed User Longtime User Aug 20, 2017 #1 Hello, I'm using the #HashTagHelper Lib. and my question is, how can i togehter with the new Feature "CSBuilder" make the HahTags bold? My Problem is that I have several hashtags in the string. I'm pretty much on the hose. (sounds better in German ^^) Greetings
Hello, I'm using the #HashTagHelper Lib. and my question is, how can i togehter with the new Feature "CSBuilder" make the HahTags bold? My Problem is that I have several hashtags in the string. I'm pretty much on the hose. (sounds better in German ^^) Greetings
Erel B4X founder Staff member Licensed User Longtime User Aug 20, 2017 #2 I'm not familiar with HashTagHelper library, however if you have an existing string and want to format specific words then it is easier to use RichString library. It is also possible with CSBuilder. See how the terms are highlighted in SearchView: https://www.b4x.com/android/forum/t...native-to-autocompleteedittext.19379/#content Upvote 0
I'm not familiar with HashTagHelper library, however if you have an existing string and want to format specific words then it is easier to use RichString library. It is also possible with CSBuilder. See how the terms are highlighted in SearchView: https://www.b4x.com/android/forum/t...native-to-autocompleteedittext.19379/#content
Alexander Stolte Expert Licensed User Longtime User Aug 20, 2017 #3 is it possible with the c builder to filter a character to the next space and make all before bold? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 21, 2017 #4 Yes. But it will be simpler with RichString. Upvote 0
Alexander Stolte Expert Licensed User Longtime User Aug 21, 2017 #5 I have already tested it, but I just can not get it. Code: Dim rs As RichString rs.Initialize(lbl_content.Text) rs.Style2(rs.STYLE_BOLD, "#") lbl_content.Text = rs Upvote 0
I have already tested it, but I just can not get it. Code: Dim rs As RichString rs.Initialize(lbl_content.Text) rs.Style2(rs.STYLE_BOLD, "#") lbl_content.Text = rs
Erel B4X founder Staff member Licensed User Longtime User Aug 21, 2017 #6 What is the output of Log(lbl_content.Text) ? Which part of the text do you want to make bold? Upvote 0
Alexander Stolte Expert Licensed User Longtime User Aug 21, 2017 #7 For example i have this in the label: Hello, this is a Nice Day! #nice #day and i want that: Hello, this is a Nice Day! #nice #day i get to be stuck :/ Upvote 0
For example i have this in the label: Hello, this is a Nice Day! #nice #day and i want that: Hello, this is a Nice Day! #nice #day i get to be stuck :/
Erel B4X founder Staff member Licensed User Longtime User Aug 22, 2017 #8 Here: https://www.b4x.com/android/forum/threads/csbuilder-marking-based-on-regex-pattern.83002/ Upvote 0