Syntax Highlighting…Finally

Sharing code the way it was meant to be seen

(Animated with Fable — 🙌 Chris Boardman and team)

Today you can finally share your code the way it was meant to be seen. Hoping that this enables better experiences for writers like Jackie Moraa sharing experiences about adding Lottie animation to Flutter apps, Mariana Beldi sharing tips on SVG optimization, and Daphne Watson sharing learnings about CSS. 🖖

import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
);
}
}

class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);

@override
State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Container();
}
}
<text font-family="Arial">Lorem ipsum</text>
.btn-orange {
background-color: #EB984E;
}
•fnt {
color: #FFF;
}
.ctr {
text-align: center;
}
.hi {
font-size: 3em;
}
.marg-20 {
margin-left: 20px;
margin-right: 20px;
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store