How to create a text area which takes styles - css

I am writing an application, the use case is admin can enter some text in text area, the same will be displayed to the logged in user.
Here my problem is, if admin copies some code from some editor like eclipse/ intelliJ IDE, the code and style also should get copied to the text box.
So that user would be able to see it in proper format/style.
Is there any way to achieve this?
Thanks and Best Regards,
Kishna

Unfortunately that is not possible.
The textarea is not designed for that purpose.
Read here for further information.

Related

How do I create a button that will display hidden text when pressed using CSS?

I want to create a page where the user is prompted to click on a button. When they click on the button I want a text displayed below it, displaying whatever I choose the text to include. Everywhere I've looked has just told me how to make an input user text button which is not what I'm looking for. I would like the solution using CSS only please.
I haven't tried anything so far. I built the original page to display the text on hover, but it wasn't intuitive when using a touch screen device and I want to avoid text overlays telling the user things like "touch here" when I could just do a better job making the site feel more intuitive to touch device users. Like I mentioned previously I haven't found useful information for what I'm trying to create. Thanks in advance.

Hide browse button inside file input

So far I managed to make my upload button act like a file input but now I don't want the browse button anymore and unfortunately I don't know how to get rid of it.
Any ideas?
The best idea for fixing this would be to create a custom file input. This might seem painful at first but is the best way to have full control over your file input design.
Look at https://tympanus.net/codrops/2015/09/15/styling-customizing-file-inputs-smart-way/ for one of the ways to do this.
Another way involves an ugly work around that is widely used. The thread for the following is Hide the browse button on a input type=file

WatchKit: How does the dictation feature work?

Could anybody please help me understand how does the dictation API work in WatchKit? I'm aware that we use the text input controller (presentTextInputControllerWithSuggestions) to let the user dictate the text. Now I have a couple of questions:
Can the user see the dictated text in the same controller?
Can the user edit the text somehow?
Can I change the look and feel of the controller?
Thanks in advance.
Regards,
Kavita
Can the user see the dictated text in the same controller?
When you start presentTextInputWithSuggestions, you will have a list of suggestions and a button to start dictation. If you don't add suggestions, dictation start automatically.
You will have a page for suggestion and another page for dictation. During the dictation, user sentence appears on the dictation screen. When he press "Done", you come back to your first page
Can the user edit the text somehow?
No, the user can't edit your suggestions. However, you can save is dictation and add this text to the next suggestions for example
Can I change the look and feel of the controller?
You can change the suggestions, the availability of emoji and dictation. However, you can't change dictation view

Is it possible to remove the print dialog header/footer?

I have an online application that the user needs to print. However, I don't want the default header/footer included in the print dialog:
Can I change that programmatically? I know there is an option, but I don't want to have to rely on the user unchecking that box.
No, you can't do that as far as I know.

Showing PDF in a browser and getting the Text selected by the user (flash will do as well)

I want to show a PDF in browser, from which user can select text, showing pdf is very easy i have done this using "pdfviewer" control, now i want to get the selected text which the user selects in the PDF, is there any way to achieve this? i am using asp.net.
Edit: If there is a flash/ flex solution at the client end that will as well, does anyone know about it, i tried one API, but that dint seem to work
You can add a JavaScript PDF action to the page and have it post to an online form.
The PDF Viewer control from Winnovative doesn't offer any text selection APIs at all.
Acrobat's JavaScript engine doesn't either.
Sorry: No.

Resources