How can I insert mathematical notation through HTML textarea? [closed] - html

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I want to copy and paste mathematical formulas from other websites , the problem is that the formulas change their structure when I paste it to my admin textarea and looks differently in my website.I used CKEditor , but it did not solve my problem.

You can try using MathJax, a JavaScript display engine, to display math on your website. It is simple to get started just by adding this to your page:
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML'></script>
After that, you can easily start writing mathematical formulas in many notations, i.e. TeX and LaTeX notation, MathML notation, and/or AsciiMath notation.
In fact, StackOverflow uses MathJax as well :)

Related

How can I design pages with this structure? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 days ago.
Improve this question
I have had a great doubt for a long time, and I have been able to observe in some manufacturers that chips and tutorials, such as espressif or microchip technology, use pages with this format in some of their tutorials:
I would like to know if this page format is some standard or is it just a popular template that is often used or generated with some framework?
It would be interesting to be able to implement some identical format, I hope you can help me.
This is made using a document generator, and there are lots of them out there.
The specific one in your image example seem to be Read the docs.
You can look up "documentation generator" or "static documentation generator" for more examples.

Custom made HTML tags [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Just came across a project that had custom-made tags.
Something like:
<buildings>
<building-1></building-1>
<building-2></building-2>
</buildings>
(This code doesn't do anything; it's an example)
(It's not mine) (https://codepen.io/perbyhring/pen/jpQwav) What is the use of this?
Those custom HTML elements have been introduced some time ago and should make HTML code more readable.
"Those elements provide a way to build own DOM elements but also have some drawbacks as simply defining and using an element called blue-button does not mean that the elements represent a button. Tools such as Web browsers, search engines, or accessibility technology will not automatically treat the resulting element as a button just based on its defined name."
Read more about them in the html standard.

Can Cuba (ruby framework) load HTML instead of HAML [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Currently working on a Cuba project, bunch of HAML file but for improving UI I still prefer pure HTML, but as I tried, It's seems very complicate to rebuild every thing to get rid of HAML.
Any clues?
From a quick glance at the docs, Cuba can use any template tilt supports. So if you want to switch to ERB (HTML-based template), you'd switch the template engine:
Cuba.settings[:render][:template_engine] = "erb"
And then re-write all of your view code in ERB. Which seems like a lot of work compared to getting used to HAML, but alas.
There are tools to make HAML->ERB conversion easier, like herbalizer.

Edit text in HTML [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have an h1 header on my page that simply says "Hello world".
I want to know how I can add a form to change the header to say "Hello world from my_form_field_value".
It depends on the technology you are using (jQuery, ASP(.NET), PHP, etc).
user3047190's answer used jQuery (client side solution). If using a server side solution, you can have the form send a querystring containing the text to the server and return a page with the text you just typed in.
Here's an online example: http://html.net/tutorials/asp/lesson11_ex1.asp
Here's the tutorial explaining the above classic ASP example: http://html.net/tutorials/asp/lesson11.asp
This question is horribly phrased so I'm afraid I will answer your question with other answers.
What I believe you want is on input change, you want to capture the change (Detecting input change in jQuery?) and update the h1 text: $("h1").text("newString");
(that will only work with jquery included)

User formatting for textarea [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
A perfect example is stackoverflow. When a user types a question, the textarea give the user basic formatting options such as bullet points, numbering, italicize, etc. How can I create a similar textarea? I am currently using html, css and php.
You can use javascript (or more effectively jQuery) to create your own textarea with this behaviour, or look at an existing package such as TinyMCE and configure it to meet your requirements (the approach I would suggest): http://www.tinymce.com/
Easiest way would be to use an editor like TinyMCE: http://www.tinymce.com/
There are others as well, but TinyMCE is what I see used most.