I am working on an e-learning website and developing code editors for php.
I just want it to be like the Code Editor of W3Schools "Try IT Now".
I want to enter the code in the left side and want to get output in the right side.
As per my analysis, "ACE Code Editor" is the best one for this task, but I am unable to integrate that in my website.
I am trying to explain my problem.
- I have created two text area with same CSS property
- One is hidden and one is visible
- When user type code then both text area get the entered code.
- Post getting the PHP code, it need to send to server using AJAX..
- Now I am having problem with AJAX. I don't know how to send PHP code to server using Ajax and how to get output in return.