Personal Online PHP HTML Editor Source Code

Personal Online PHP HTML Editor Source Code

Also Read : first love marriage in the world

Today, We want to share with you Personal Online PHP HTML Editor Source Code.
In this post we will show you Online PHP Code Editor, hear for How to Create a Personal Online PHP Editor we will give you demo and example for implement.
In this post, we will learn about PHP Online Editor – PHP Online IDE – PHP Coding Online with an example.

Personal Online PHP HTML Editor Source Code

There are the Following The simple About Personal Online PHP HTML Editor Source Code Full Information With Example and source code.

As I will cover this Post with live Working example to develop , so the some major files and Directory structures for this example is following below.

  • index.php
  • live-file-set.php
  • code-editable.php
  • editor-action.js
  • style.css
READ :  A1 A2 A3 A4 A5 Paper Size in inches mm cm and meters pixels

Converting HTML Textarea into Code Editor


This is where I will make a simple HTML form and PHP server side source code for our web application. To make the forms simply all souce code copy and write it into your any text editor Like Notepad++, then save file it as index.php.

    <a href="http://assets/jQuery/jQuery.js">http://assets/jQuery/jQuery.js</a>
    <a href="http://assets/assets.js">http://assets/assets.js</a>
  	<a href="http://editor-action.js">http://editor-action.js</a>
    <a href="http://assets/mode/htmlmixed/htmlmixed.js">http://assets/mode/htmlmixed/htmlmixed.js</a>
    <a href="http://assets/mode/xml/xml.js">http://assets/mode/xml/xml.js</a>
    <a href="http://assets/mode/javascript/javascript.js">http://assets/mode/javascript/javascript.js</a>
    <a href="http://assets/mode/css/css.js">http://assets/mode/css/css.js</a>
    <a href="http://assets/mode/clike/clike.js">http://assets/mode/clike/clike.js</a>
    <a href="http://assets/mode/php/php.js">http://assets/mode/php/php.js</a>
    <a href="http://assets/addon/selection/active-line.js">http://assets/addon/selection/active-line.js</a>
    <a href="http://assets/addon/edit/matchbrackets.js">http://assets/addon/edit/matchbrackets.js</a>

<div class="row">
    <textarea class="codemirror-textarea" id="code-editor"></textarea>
    <div class="add-new-rec">
        <button class="live-btn-option" id="run">Run</button>
        <button class="live-btn-option" id="clear">Clear</button>
        <button class="live-btn-option" id="refresh">Refresh</button><span id="live_err"></span>
<div class="add-new-rec">	
  <div id="preview"></div>


Set Online PHP editable

Also Read : tamilblasters, 9kmovie, filmygod, hdhub4u, vegamovies, tamilrockers website link and 1377x proxy.


PHP Write Editor Source code to a File Dynamically


Online Editor using jQuery AJAX

editor-action.js – Executing Code with Online Editor using jQuery AJAX

	var codeEditorElement = $(".codemirror-textarea")[0];
    var livechk = CodeMirror.fromTextArea(codeEditorElement, {
        mode: "application/x-httpd-php",
        lineNumbers: true,
        matchBrackets: true,
        theme: "ambiance",
        lineWiseCopyCut: true,
        undoDepth: 200

	$(document).on('click', '#run', function(e){
		var sourceCode = livechk.getValue();
		if(sourceCode != ''){
			url: 'live-file-set.php',
			type: 'POST',
			dataType: 'json',
			data: {"input":sourceCode},
					url: 'code-editable.php',
					type: 'GET',
						console.log("output_results:  "+output_results);
						$("#preview").html(output_results)	;
						console.log("live_err: "+output_results);

		} else{
			$("#live_err").html("Sorry, Code should not be empty").show();


	$(document).on('click', '#clear', function(e){

	$(document).on('click', '#refresh', function(e){

Custom Style CSS


body {
    font-family: Arial;
.live-btn-option {    
    background: #1f201f;
    padding: 8px 25px;
    margin-right: 10px;
    border: #101010 2px solid;
    color: #ccc;
.add-new-rec {
    margin-top: 20px;

#preview {
    border: #d0d0d0 2px solid;
    padding: 10px;
    min-height: 100px;

#live_err {
    color: #d63f3f;

Personal Online PHP HTML Editor – Output


jQuery 15 Powerful Tips and Tricks for Developers and Web Designer

Read :

READ :  C# Palindrome program Tutorial with Examples


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Create a Personal Online PHP HTML Editor.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.