jmsv / ety-python

A Python module to discover the etymology of words
http://ety-python.rtfd.io
MIT License
144 stars 18 forks source link

Highlight word if it's the source word #36

Closed alxwrd closed 6 years ago

alxwrd commented 6 years ago

This moves the new colorful.bold highlighting to a word's pretty property. A Word now has the is_source attribute to determine if it's the source. If it is, it gets highlighted.

I think this will be helpful if we ever add a reverse origins/tree. You can set a word as the source word and ensure it gets highlighted wherever it ends up in a tree.

jmsv commented 6 years ago

Good idea 👍