
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
embeddable-monaco
Advanced tools
Embeddable online playground using Monaco editor. Works great with Vue and Slidev!
Embeddable online playground using Monaco editor. Also made to be a Vue component, perfect to be embedded in Slidev slides.
$ npm install --save embeddable-monaco
or
$ yarn install embeddable-monaco
Edit file setup/main.ts
:
import {defineAppSetup} from '@slidev/types';
import {Embeddable} from 'embeddable-monaco';
import 'embeddable-monaco/dist/embeddable.css';
export default defineAppSetup(({app}) => {
Embeddable.install(app);
});
Use component Embeddable
in your slides:
<Embeddable
height="300"
sourceURL="https://embeddable.vercel.app/?lang=typescript&code=aW50ZXJmYWNlIFVzZXIgewogIGlkOiBudW1iZXI7CiAgbmFtZTogc3RyaW5nOwogIGFnZTogbnVtYmVyOwp9CgpmdW5jdGlvbiBnZXRWYWx1ZShvYmosIGtleSkgewogIHJldHVybiBvYmooa2V5KTsKfQoKbGV0IHVzZXIxOiBVc2VyID0ge2lkOiAxLCBuYW1lOiAnYWRtaW4nLCBhZ2U6IDE4fTsKbGV0IHZhbHVlID0gZ2V0VmFsdWUodXNlcjEsICduYW1lJyk7CmNvbnNvbGUubG9nKHZhbHVlKTsK"
lineNumbers="off"
/>
Embeddable
"100%"
"100%"
"typescript"
"// Start here..."
language
and code
. This will override language
and code
props.https://embeddable.vercel.app/?lang=<YOUR_LANGUAGE>
and type in the code, then press cmd/ctrl + S
. The address bar will give you this sourceURL
.https://embeddable.vercel.app/?lang=typescript&code=Ly8gU3RhcnQgaGVyZS4uLgo%3D
"on"
| "off"
"on"
"on"
| "off"
"on"
"auto"
| "visible"
| "hidden"
"auto"
shows the scrollbar when mouse hover; "visible"
makes the scrollbar always visible; "hidden"
always hides it."auto"
MIT, see the LICENSE file for more details.
FAQs
Embeddable online playground using Monaco editor. Works great with Vue and Slidev!
The npm package embeddable-monaco receives a total of 1 weekly downloads. As such, embeddable-monaco popularity was classified as not popular.
We found that embeddable-monaco demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.