Text description (for those with screenreaders):

A portion of a prime number checker written in the Rust programming language, where the first few lines are written correctly including the first if statement in the program. However, the following if statements are written using Python syntax instead of Rust, as the author slipped back into his native tongue.

hallettj
link
fedilink
English
710M

I did not realize nano implemented syntax highlighting!

@JustARegularNerd@aussie.zone
creator
link
fedilink
English
410M

I’m not sure what does and doesn’t control it, but I’ve installed nano on some Linux distros and it has no syntax highlighting at all, then other distros (currently using LMDE) just have it by default.

Create a post

All things programming and coding related. Subcommunity of Technology.


This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

  • 1 user online
  • 1 user / day
  • 1 user / week
  • 7 users / month
  • 88 users / 6 months
  • 1 subscriber
  • 303 Posts
  • 2.15K Comments
  • Modlog