Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

How do I reformat the .txt file to look like java code?

I want to be able to look at a .txt file in notepad as it would be formatted in java. How do I do this?

1 Answer

You really shouldn't use notepad but a decent text editor that can show you the correct syntax highlighting. Anything like Notepad++, Sublime Text, Brackets etc. And then the file should be saved in the proper format, .java in this case, instead of .txt.

I thought I saw Ben use some technique...

Notepad++ it is for now!

Thanks!