Syntax Highlighting…Finally
1 min readNov 10, 2022
Sharing code the way it was meant to be seen
Today you can finally share your code the way it was meant to be seen. Hoping that this enables better experiences for writers like sharing experiences about adding Lottie animation to Flutter apps, sharing tips on SVG optimization, and 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;
}