Git Markup Language Editor
How do I make an git markup language editor?
A simple Git Markup language editor that makes minimal use of SASS (because there is not much that can be done with it at this stage) and greater use of React.js.. What is a git markup language editor? How do you make a git markup language editor? This script and codes were developed by Bob Sutton on 11 September 2022, Sunday.
Git Markup Language Editor - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Git Markup Language Editor</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Gloria+Hallelujah'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1 class="text-center headers">Git Markup Language Editor</h1>
<div class="container"> <div class="row first-row"> <div class="col-sm-6"> <h3 class="headers text-center">Put markup here</h3> <div id="left-panel"></div> </div> <div class="col-sm-6"> <h3 class="headers text-center">Rendered markup</h3> <div id="right-panel"></div> </div> </div>
</div> <script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/763768/marked.js'></script>
<script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/763768/react.js'></script>
<script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/763768/react-dom.js'></script> <script src="js/index.js"></script>
</body>
</html>
Git Markup Language Editor - Script Codes CSS Codes
body { background-color: #efffff; margin-bottom: 50px;
}
.headers { font-family: Gloria Hallelujah; font-weight: bold;
}
.row { margin-left: auto; margin-right: auto;
}
.first-row { margin-top: 50px; margin-bottom: 15px;
}
#left-panel { padding: 0px; height: 600px;
}
#right-panel { padding-left: 20px; padding-right: 5px; padding-bottom: 5px; height: 600px;
}
textarea { padding: 5px; width: 100%; height: 100%; resize: none;
}
Git Markup Language Editor - Script Codes JS Codes
var initText =
"Heading\n" +
"=======\n" +
"\n" +
"Sub-heading\n" +
"-----------\n" +
" \n" +
"### Another deeper heading\n" +
" \n" +
"Paragraphs are separated by a blank line.\n" +
"\n" +
"Leave 2 spaces at the end of a line to do a line break\n" +
"\n" +
"Text attributes *italic*, **bold**, `monospace`, ~~strikethrough~~ .\n" +
"\n" +
"Shopping list:\n" +
"\n" +
" * apples\n" +
" * oranges\n" +
" * pears\n" +
"\n" +
"Numbered list:\n" +
"\n" +
" 1. apples\n" +
" 2. oranges\n" +
" 3. pears\n" +
"\n" +
"The rain---not the reign---in Spain.\n" +
"\n" +
" *[Bob Sutton](https://freecodecamp.com/anischyros)*";
marked.setOptions(
{ renderer: new marked.Renderer(), gfm: true, tables: true, breaks: false, pedantic: false, sanitize: true, smartLists: true, smartypants: false
});
var TextField = React.createClass(
{ propType: { text: React.PropTypes.string }, getDefaultProps: function() { return { text: "" }; }, render: function() { return React.DOM.textarea( { value: this.state.text, onChange: this._textChange }); }, getInitialState: function() { return { text: this.props.text }; }, _textChange: function(event) { this.setState({ text: event.target.value }); document.getElementById("right-panel").innerHTML = marked(event.target.value); }
});
ReactDOM.render( React.createElement(TextField, {text: initText}), document.getElementById("left-panel"));
document.getElementById("right-panel").innerHTML = marked(initText);
Developer | Bob Sutton |
Username | anischyros |
Uploaded | September 11, 2022 |
Rating | 3 |
Size | 3,100 Kb |
Views | 28,336 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Web calculator | 4,450 Kb |
The Game of Life | 5,160 Kb |
FreeCodeCamp Leader Board | 3,568 Kb |
Worldwide Meteor Strikes Map | 2,292 Kb |
Contiguity Graph of Countries | 2,687 Kb |
Life in a Dungeon | 9,630 Kb |
Wikipedia Lookup Page | 4,066 Kb |
Pomodoro Clock | 3,562 Kb |
Generic Simon Game | 4,475 Kb |
The Mark Twain Random Quote Machine | 6,500 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Minimal Menu | Achudars | 3,430 Kb |
Basic 3D Fullscreen Transition | Apetrov | 3,270 Kb |
Octopus Bar iPad App Interactions | Davidkpiano | 6,735 Kb |
BlueBox Fork | Huskynation | 12,675 Kb |
Ball bouncing loading animation | Adam2326 | 3,144 Kb |
Highbrow Basic HTML Lesson 8 | Kimlarocca | 2,094 Kb |
Scifi-style Interative Form | Aaronchuo | 4,566 Kb |
Price | Catcode | 2,623 Kb |
SVG Text Masking | JMChristensen | 2,141 Kb |
Personal Logo Animation | Lloydwheeler | 3,795 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!