Theme-Logo
  • Mega
    • Popular Links
      • Form Elements
      • Buttons
      • Maps
      • Contact Cards
      • User Information
      • Lock Screen
    • Mailbox
      • Data Backup
        Store your data
      • Support
        24-hour support
      • Drop-box
        Store large amount of data in one-box only
      • Location
        Find Your Location with ease of use
    • Gallery
      Gallery-1
      Gallery-2
      Gallery-3
      Gallery-4
      Gallery-5
      Gallery-6
    • Contact Us
  • English
    • English
    • Spanish
    • Portuguese
    • French
  • 5
    • Notifications
    • Generic placeholder image
      John Doe

      Lorem ipsum dolor sit amet, consectetuer elit.

      30 minutes ago
    • Generic placeholder image
      Joseph William

      Lorem ipsum dolor sit amet, consectetuer elit.

      30 minutes ago
    • Generic placeholder image
      Sara Soudein

      Lorem ipsum dolor sit amet, consectetuer elit.

      30 minutes ago
  • 9
  • User-Profile-Image John Doe
    • Settings
    • Profile
    • My Messages
    • Lock Screen
    • Logout

People

Sara Soueidan

Sara Soueidan

Shaun Dona

Shaun Dona

Popular

PagePreloadingEffect

Page Preloading Effect

DraggableDualViewSlideshow

Draggable Dual-View Slideshow

Recent

TooltipStylesInspiration

Tooltip Styles Inspiration

NotificationStyles

Notification Styles Inspiration

Generic placeholder image
Josephin Doe
Generic placeholder image
Lary Doe
Generic placeholder image
Alice
Generic placeholder image
Alia
Generic placeholder image
Suzen
Generic placeholder image
Michael Scofield
Generic placeholder image
Irina Shayk
Generic placeholder image
Sara Tancredi
Generic placeholder image
Samon
Generic placeholder image
Daizy Mendize
Generic placeholder image
Loren Scofield
Generic placeholder image
Shayk
Generic placeholder image
Sara
Generic placeholder image
Doe
Generic placeholder image
Lary
Josephin Doe
Generic placeholder image

I'm just looking around. Will you tell me something about yourself?

8:20 a.m.

I'm just looking around. Will you tell me something about yourself?

8:20 a.m.

Generic placeholder image
User-Profile-Image
John Doe UX Designer
  • View Profile Settings Logout
Navigation
  • Dashboard
    • Default
    • Ecommerce
    • CRM
    • Analytics NEW
    • Project
  • Page layouts NEW
    • Vertical
      • Static Layout
      • Header Fixed
      • Compact
      • Sidebar Fixed
    • Horizontal
      • Static Layout
      • Fixed layout
      • Static With Icon
      • Fixed With Icon
    • Bottom Menu
    • Box Layout
    • RTL
  • Navigation
    • Navbar
    • Navbar Inverse
    • Navbar With Elements
  • Widget 100+
UI Element
  • Basic Components
    • Alert
    • Breadcrumbs
    • Button
    • Box-Shadow
    • Accordion
    • Generic Class
    • Tabs
    • Color
    • Label Badge
    • Progress Bar
    • Pre-Loader
    • List
    • Tooltip And Popover
    • Typography
    • Other
  • Advance Components
    • Draggable
    • Grid Stack
    • Light Box
    • Modal
    • Modal Form
    • Notifications
    • PNOTIFY NEW
    • Rating
    • Range Slider
    • Slider
    • Syntax Highlighter
    • Tour
    • Tree View
    • Nestable
    • Toolbar
    • X-Editable
  • Extra Components
    • Session Timeout
    • Session Idle Timeout
    • Offline
  • Animations
  • Sticky Notes HOT
  • Icons
    • Font Awesome
    • Themify
    • Simple Line Icon
    • Ion Icon
    • Material Design
    • Ico Fonts
    • Weather Icon
    • Typicons
    • Flags
Forms
  • Form Components
    • Form Components
    • Form-Elements-Add-On
    • Form-Elements-Advance
    • Form Validation
  • Form Picker NEW
  • JSON Form HOT
    • Simple Form
    • Clubs(View Selector)
    • Customer Form
    • Profile Display
    • Profile Edit
    • Profile Ready Only
    • Form Fields
    • Registration Validation
    • Automatic Validation
    • Localized Login
  • Form Select
  • Form Masking
  • Form Wizard
  • Ready To Use HOT
    • Cloned Elements Form
    • Currency Form
    • Booking Form
    • Booking Multi Steps Form
    • Comment Form
    • Contact Form
    • Job Application Form
    • JS Addition Form
    • Login Form
    • Popup Modal Form
    • Registration Form
    • Review Form
    • Subscribe Form
    • Suggestion Form
    • Tabs Form
Tables
  • Bootstrap Table
    • Basic Table
    • Sizing Table
    • Border Table
    • Styling Table
  • Data Table
    • Basic Table
    • Basic Initialization
    • Advance Initialization
    • Styling
    • API
    • Ajax
    • Server Side
    • Plug-In
    • Data Sources
  • Data Table Extensions
    • AutoFill
    • Button
      • Basic Button
      • Flash Button
      • Html-5 Data Export
      • Print Button
    • Col Reorder
    • Fixed Columns
    • Fixed Header
    • Key Table
    • Responsive
    • Row Recorder
    • Scroller
    • Select Table
  • FooTable
  • Handson Table
    • Appearance
    • Data Operation
    • Rows Columns
    • Columns Only
    • Cell Features
    • Cell Types
    • Integrations
    • Rows Only
    • Utilities
  • Editable Table
Chart And Maps
  • Charts
    • Google Chart
    • Echarts
    • ChartJs
    • List Chart
    • Float Chart
    • Know chart
    • Morris Chart
    • Nvd3 Chart
    • Peity Chart
    • Radial Chart
    • Rickshaw Chart
    • Sparkline Chart
    • C3 Chart
  • Maps
    • Google Maps
    • Vector Maps
    • Google Map Search API
    • Location
  • Landing Page
Pages
  • Authentication
    • Login With BG Image
    • Login With Social Icon
    • Login Social With Header And Footer
    • Login With Header And Footer
    • Registration BG Image
    • Registration Social Icon
    • Registration Social With Header And Footer
    • Registration With Header And Footer
    • Multi Step Registration
    • Forgot Password
    • Lock Screen
    • Modal
  • Maintenance
    • Error
    • Comming Soon
    • Offline UI
  • User Profile
    • Timeline
    • Timeline Social
    • User Profile
    • User Card
  • Blog
    • Blog
    • Blog Detail
    • Blog With Left Sidebar
    • Blog With Right Sidebar
  • E-Commerce NEW
    • Product
    • Product List
    • Product Edit
    • Product Detail
    • Product Card
    • Credit Card Form
  • E-Email
    • Compose Email
    • Inbox
    • Read Mail
    • Email Template
      • Welcome Email
      • Reset Password
      • Newsletter Email
      • App Launch
      • Activation Code
App
  • Chat
  • CRM Contact
  • Social
    • Fb Wall
    • Messages
  • Task
    • Task List
    • Task Board
    • Task Detail
    • Issue List
  • To-Do
    • To-Do
    • Notes
  • Gallery
    • Gallery-Grid
    • Masonry Gallery
    • Advance Gallery
  • Search
    • Simple Search
    • Grouping Search
  • Job Search NEW
    • Card View
    • Job Detailed
    • Job Find
    • Job Panel View
Extension
  • Editor
    • CK-Editor
    • WYSIWYG Editor
    • Ace Editor
    • Summer Note Editor
    • Long Press Editor
>
  • Invoice
    • Invoice
    • Invoice Summary
    • Invoice List
  • Event Calendar
    • Full Calendar
    • CLNDER NEW
  • Image Cropper
  • File Upload
  • Internationalize HOT
    • After Init
    • Fallback
    • On Init
    • Resources
    • XHR Backend
  • Change Loges 1.0
Other
  • Menu Levels
    • Menu Level 2.1
    • Menu Level 2.2
      • Menu Level 3.1
    • Menu Level 2.3
  • Disabled Menu
  • Sample Page
Support
  • Documentation
  • Submit Issue

Syntax Highlighter

Prism syntax highlighter
  • Advance Components
  • Syntax Highlighter
Basic Usage

The recommended way to mark up a code block(both for semantics and for Prism) is a <pre> element with a element <code> inside, like so:

Code:

<pre><code class="language-css">

    p {
        color: #1abc9c
      }

</code>
</pre>
                                        
Output:

p {
    color: #1abc9c
  }
                                        
HTML Markup

Use the following code to use HTML syntax highlighter.

Usage:
<pre>

<code class="language-markup">
    HTML CODE ... 
</code>

</pre>
Example:
<div class="card">
    <div class="card-header">
        <h5>Hello card</h5>
        <span> Lorem ipsum dolor sit amet, consectetur adipisicing elit</span>
        <div class="card-header-right">
            <i class="icofont icofont-rounded-down"></i>
            <i class="icofont icofont-refresh"></i>
            <i class="icofont icofont-close-circled"></i>
        </div>
    </div>
    
    <div class="card-block">
        <p>
             "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."          
        </p>
    </div>
</div>

        
 
CSS Markup

Use the following code to use HTML syntax highlighter.

Usage:
<pre>
<code class="language-css">
    CSS CODE ... 
</code>
</pre>
Example:
a:active{
    color:#1abc9c;
}

p{
    font-size:13px;
}

.btn-primary{
    color: #1abc9c;
    background-color: #fff;
}

.label-primary {
    background-color: #1abc9c;
}

.badge-primary {
    background-color: #1abc9c;
}

.bg-primary {
    background-color: #1abc9c !important;
    color: #fff;
}

.panel-primary {
    border-color: #1abc9c;
}
Line Number

Line number at the beginning of code lines.

Obviously, this is supposed to work only for code blocks (<pre> <code> ) and not for inline code. Add class line-numbers to your desired <pre> and line-numbers plugin will take care.

Optional: You can specify the data-start (Number) attribute on the <pre> element. It will shift the line counter.

Usage:
<pre class="line-numbers">
<code class="language-css">
p {
    color: red
}

</code>
</pre>
 
Example:
(function() {
    if (typeof self==='undefined' || !self.Prism || !self.document) {
        return;
    }
}

());
 
Line Highlight

Highlights specific lines and/or line ranges.

You specify the lines to be highlighted through the data-line attribute on the <pre> element, in the following simple format:

  1. A single number refers to the line with that number
  2. Ranges are denoted by two numbers, separated with a hyphen (-)
  3. Multiple line numbers or ranges are separated by commas.
  4. Whitespace is allowed anywhere and will be stripped off.
Usage:
<pre data-line="2, 4, 8-10">
<code class="language-css">
p {
    color: red
}

</code>
</pre>
 
Example:
pre.line-numbers {
    position: relative;
    padding-left: 3.8em;
    counter-reset: linenumber;
}

pre.line-numbers > code {
    position: relative;
}

.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -3.8em;
    width: 3em;
    /* works for line-numbers below 1000 lines */
    letter-spacing: -1px;
    border-right: 1px solid #999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
Auto Linker

Converts URLs and emails in code to clickable links. Parses Markdown links in comments.

URLs and emails will be linked automatically, you don’t need to do anything. To link some text inside a comment to a certain URL, you may use the Markdown syntax:

Usage:
<pre>
<code class="language-css">
@font-face {
    src: url(http://lea.verou.me/logo.otf);
}

</code>
</pre>
 
Example:
@font-face {
    src: url(http://lea.verou.me/logo.otf);
    font-family: 'LeaVerou';
}
                                
Show Invisibles

Show hidden characters such as tabs and line breaks.

Usage:
Example:
  (function() {
    if ( typeof self !=='undefined' && !self.Prism || typeof global !=='undefined' && !global.Prism) {
        return;
    }
    Prism.hooks.add('before-highlight', function(env) {
        var tokens=env.grammar;
        tokens.tab=/\t/g;
        tokens.crlf=/\r\n/g;
        tokens.lf=/\n/g;
        tokens.cr=/\r/g;
        tokens.space=/ /g;
    }
    );
}

)();
 
File Highlight

Fetch external files and highlight them with Prism. Used on the Prism website itself.

Use the data-src attribute on empty <pre> elements, like so:

Usage:
  <pre data-src="bootstrap-growl.min.js">
</pre>
 

You don’t need to specify the language, it’s automatically determined by the file extension. If, however, the language cannot be determined from the file extension or the file extension is incorrect, you may specify a language as well (with the usual class name way).

Please note that the files are fetched with XMLHttpRequest. This means that if the file is on a different origin, fetching it will fail, unless CORS is enabled on that website.

Example: