Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codeblock.css

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeblock.css - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

package.json
{
"name": "codeblock.css",
"version": "1.1.2",
"version": "1.1.3",
"description": "263 bytes to make pretty code blocks using only CSS. Much like Prism.js but without any highlighting.",

@@ -5,0 +5,0 @@ "main": "codeblock.min.css",

@@ -43,5 +43,5 @@ <p align="center">

<div id="code">
<span id="lang">javascript</span>
<span id="lang">html</span>
<pre>
<!-- your code here -->
&lt;!-- your code here --&gt;
</pre>

@@ -55,2 +55,28 @@ </div>

If you'd like to add a title to the code block, you'll have to do this:
```html
<div id="code">
<div id="info">
<span id="title">example 1</span>
<span id="lang">html</span>
</div>
<pre>
&lt;div id=&quot;code&quot;&gt;
&lt;div id=&quot;info&quot;&gt;
&lt;span id=&quot;title&quot;&gt;example 1&lt;/span&gt;
&lt;span id=&quot;lang&quot;&gt;html&lt;/span&gt;
&lt;/div&gt;
&lt;pre&gt;
&lt;!-- your code here --&gt;
&lt;/pre&gt;
&lt;/div&gt;
</pre>
</div>
```
Which will look like this:
<img src="https://raw.githubusercontent.com/thecodrr/codeblock.css/master/assets/preview1.png" width="700">
## Theming:

@@ -57,0 +83,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc