Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Watch a 14-minute conference presentation from OOPSLA 2025 that introduces code style sheets, a novel approach to styling program text inspired by CSS for HTML documents. Explore how researchers Sam Cohen and Ravi Chugh from the University of Chicago propose moving beyond the limited typographic styles currently used in code editors, which rely primarily on font choices and syntax highlighting colors applied uniformly regardless of program context. Learn about their selector language that generalizes CSS constructs to programming language settings with algebraic data types, enabling granular styling of abstract syntax trees based on semantic information including program structure, static type information, and runtime values. Discover their specialized layout algorithm designed to render nested, multiline text blocks more compactly than traditional HTML box-based systems, addressing the heavily nested structure inherent in programming languages. Examine practical demonstrations using a Haskell subset implementation that showcases various code presentation and visualization tasks, illustrating how code style sheets provide a unified framework for rendering programs in multiple ways suitable for both text-based and structure editors.
Syllabus
[OOPSLA'25] Code Style Sheets: CSS for Code
Taught by
ACM SIGPLAN