Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
        <div ng-app="myapp" ng-controller="content" ><div>
      <textarea type="text" id="editor"  ng-model= "content_text"  ></textarea>
      <div id="preview" ng-bind-html="content_text"></div>
 <button id=clear ng-click="clear()">clear</button>
body> div> div {
 display: flex;  
 flex-flow: row;
  height: 500px;
body> div >div >*{
    border: solid 1px black ;
    flex: 1 100%;

overflow: hidden;
overflow-y: scroll


@import url('https://fonts.googleapis.com/css?family=Gaegu|Gloria+Hallelujah|Great+Vibes|Indie+Flower|Lato|Open+Sans|Oswald|Permanent+Marker');
button {
font-family:'Permanent Marker', cursive;  
   background-color: lightgrey; /* Green */
      border: 2px solid #555555;
      padding: 8px 16px;
      text-align: center;
      text-decoration: none;
       font-size: 16px;
      margin: 10px 10px;
      -webkit-transition-duration: 0.4s; /* Safari */
      transition-duration: 0.4s;
      cursor: pointer;

  box-shadow: -2px 2px 8px rgba(0,0,0,0.6),
   -3px 4px 12px rgba(0,0,0,0.5),
 -4px 6px 15px rgba(0,0,0,0.4),
     -5px 8px 18px rgba(0,0,0,0.3);
  .button4:hover {background-color: #e7e7e7;}

var myApp = angular.module("myapp", [  'ngSanitize']);
myApp.controller("content", function($scope) {
            $scope.content_text = marked(firstload);
            $scope.clear = function() {
                $scope.content_text = "";
    $scope.change = function() {
                $scope.content_text =marked($scope.content_text);
const firstload = "Markdown syntax typed into the first pane will be automatically converted to HTML and rendered in the second pane. Go ahead, give it a try!  \n\n#### Headings:  \n# Heading 1\n## Heading 2\n### Heading 3\n---\n#### Hyperlink:   \n[Google](https://google.com)  \n\n---\n#### Inline code:\nFrom the console, run `console.log('Hello world!');` to see the output.    \n\n---\n\n#### Code block:\n```javascript\nfunction sayHello() {\n  return 'Hello world!';\n}\n```\n---\n\n#### List items:\n1. Ordered list item 1  \n2. Ordered list item 2  \n\n\n- Unordered list item  \n- Unordered list item  \n\n---\n\n#### Blockquote:  \n> Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest. -Isaac Asimov \n\n---\n#### Image:  \n![alt text](https://avatars2.githubusercontent.com/u/9892522?s=100&v=4 'freeCodeCamp Avatar')  \n\n---\n#### Formatted text:\nAs **bolded** or *emphasized* text.  ";
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.