syntax highlighting
-apple-system
and BlinkMacSystemFont
are aliases for the default fonts on new macOS and iOS computers.
find . -name "node_modules" -type d -prune -print | xargs du -chsfind . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' ;
ts
functiongreet (person : string) {console .log (`Hello ${person },`)console .log (`How do?`)}greet ("Maddison")
ts
export const formatDate = (/** @type {string | number | Date} */ value) => {const date = new Date(value)return new Intl.DateTimeFormat('en-GB', {dateStyle: 'medium',}).format(date)}
svelte
<script context="module">/*** @type {import('@sveltejs/kit').Load}*/import { fetchPosts } from '$lib/utils/fetch-posts'export async function load ({ params }) {const slug = params.slugconst data = await fetchPosts()const post = data.find(post => post.slug === slug)if (post) {return { props: { ...post } }} else {return {status: 404,error: new Error('Post not found')}}}</script>
svelte
<script>export let title, date, updatedOn, prev, next, content</script>...{@html content}...