Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<nav id="navbar">
  <header>C# documentation</header>
  <a href="#Introduction_to_C#" class="nav-link">Introduction to C#</a>
  <a href="#What's_inside_a_C#_program" class="nav-link">What's inside a C# program</a>
  <a href="#Hello_world_your_first_program" class="nav-link">Hello world your first program</a>
  <a href="#General_structure_of_a_C#_program" class="nav-link">General structure of a C# program</a>
  <a href="#C#_coding_conventions" class="nav-link">C# coding conventions</a>
</nav>

<main id="main-doc">
  <section class="main-section" id="Introduction_to_C#">
    <header id="header">Introduction to C#</header>
    <p>C# is a type-safe object-oriented language.</p> 
    <p>It enables developers to build robust applications that run in the .NET ecosystem.</p>
    </section>
  <section class="main-section" id="What's_inside_a_C#_program">
    <header>What's inside a C# program</header>
    <p>The general structure of a C# program is discussed below.</p>
  </section>
  <section class="main-section" id="Hello_world_your_first_program"><header>Hello world your first program</header>
    <p>The first line contains a comment indicated by <code>//</code>.</p>
    <p>You can comment out a block of text by enclosing it between <code>/*</code> and <code>*/</code> characters</p>
    <p> a c# console application must contain a <code>main</code> method which controls the start and end</p> 
    <p> The main method can be declared in different ways. One way is to return <code>void</code></p>
    </section>
  <section class="main-section" id="General_structure_of_a_C#_program"><header>General structure of a C# program</header>
    <p>C# programs can consist of one or more files.Each file can contain 0 or more namespaces.</p>
    <p>Namespaces can contain types such as: 
    <ul>
      <li>classes
      <li>structs
      <li>interfaces
      <li>enumerations
      <li>delegates
    </ul>
    </p></section>
  <section class="main-section" id="C#_coding_conventions"><header>C# coding conventions</header>
    <p>Coding conventions have the following purposes:</p>
    <p>They create a consistent look to code.They make understanding quicker by making assumptions based on previous experience.</p>
    <p>They also enable copying, changing and maintaining code. Finally, they demonstrate C# best practices.</p>
    </section>
</main>
              
            
!

CSS

              
                <style>

#main-doc {
  position: absolute;
  margin-left: 350px;

}

#navbar {
  position: fixed;
  float: left;
  width: 8%;
}

@media (max-width: 100px) {
  p {
    font-size: 12px;
  }
}
</style>


              
            
!

JS

              
                
              
            
!
999px

Console