Line the slow cooker insert with parchment, leaving an overhang.
Add chocolate chips, condensed milk and butter.
Cover and cook on low 1 to 1.5 hours, stirring every 20 minutes.
Once smooth, stir in peppermint extract and half the candy canes.
Pour into a parchment-lined 9x13 pan and swirl in food coloring if using.
Sprinkle remaining candy canes over the top.
Chill at least 2 hours until firm, then lift out and cut into squares.