Both iteratively rewrite a target until it matches a reference style. Prettier walks the AST and emits whitespace, quote, and bracket choices that match the configured style — applied repeatedly until the output is stable. Style transfer walks pixel updates that minimize the difference between the target image's feature statistics (Gram matrices) and the reference style image's. Same shape: take an input that already has CONTENT, transform it iteratively until its STYLE matches an exemplar, preserve the content semantics throughout.