Skip to content

Instantly share code, notes, and snippets.

@kevduc
Created September 25, 2021 22:14
Show Gist options
  • Save kevduc/42f703d552ec48384f81440d6ab65413 to your computer and use it in GitHub Desktop.
Save kevduc/42f703d552ec48384f81440d6ab65413 to your computer and use it in GitHub Desktop.
Wraps the given string in html that colors that text
function cprintf(color, string)
%CPRINTF wraps the given string in html that colors that text.
disp(['<font color="', color, '">', string, '</font>']);
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment