AmrDeveloper / CodeView

Android Library to make it easy to create an Code editor or IDE that support any languages and themes, with auto complete, auto indenting, snippets and more features
https://amrdeveloper.github.io/CodeView/
MIT License
378 stars 48 forks source link

Add Italicize, Bold, Underline #10

Closed rudrathedev closed 2 years ago

rudrathedev commented 2 years ago

Would like to see these in editor !

AmrDeveloper commented 2 years ago

Hello @rudrathedev, Thanks for your suggestion, but can you please provide some extra information for example

If you want bold in all keywords in the editor you can make this easily like any other TextView

From XML

android:textStyle="bold"

or from Java

codeView.setTypeface(textView.getTypeface(), Typeface.BOLD);

Or you mean for example to add style for a specific pattern like language keywords

Thanks Amr Hesham

rudrathedev commented 2 years ago

I want it to be for a specific pattern

MahmoudMabrok commented 2 years ago

@rudrathedev i think it can be added as overflow menu when user select text in code (not sure if it already appear or not).

Could u share a the business case for having bold some text based on pattern?.

Normally for code ide no styling like this is applied.