I have a suggestion. I don't think it is difficult for the owners of the web site to enable the highlighting for code snippets. It is already enabled in Stackoverflow. As of now code snippets on Data Science, seem to be ugly-looking stuff. Is it possible that someone could enable Syntax Highlighting?
-
$\begingroup$ I am unfamiliar with this functionality. Do you have a reference from SO? $\endgroup$– Stephen Rauch ModMar 25, 2018 at 4:13
-
$\begingroup$ @StephenRauch Sure, take a look at here, the code snippet has different colors for functions, classes, numbers and other entities which help readability while this behavior is not supported in our community, e.g. the code snippet here. This behavior is performed by employing regular expressions. $\endgroup$– Green FalconMar 25, 2018 at 5:00
-
$\begingroup$ Why do you think this is based on Regular Expressions? $\endgroup$– Stephen Rauch ModMar 25, 2018 at 5:02
-
$\begingroup$ I edited your your question to what I think is the correct terminology. If I broke the question you can rollback the edit or re-edit it as needed. $\endgroup$– Stephen Rauch ModMar 25, 2018 at 5:29
-
$\begingroup$ @StephenRauch no it's just fine :) I've said that because during my BS I had a project for autumota subject. That time we wrote a text editor for highlighting different entities using state machines. $\endgroup$– Green FalconMar 25, 2018 at 7:36
-
1$\begingroup$ Requested here $\endgroup$– Dawny33Apr 3, 2018 at 6:26
2 Answers
Sounds reasonable. We do need syntax highlighting on the site.
Please help me with collecting a good number of example posts which would benefit from the feature.
[Converting this answer to a community wiki so that people can edit it]
List:
Hypertuning XGBoost parameters
Feature extraction of images in Python
Calculating KL Divergence in Python
-
1$\begingroup$ Add three links to posts from nobody in particular... :-) $\endgroup$– Stephen Rauch ModMar 26, 2018 at 23:48
Syntax Highlighting is a feature available on StackExchange Sites.
This question has been asked before. It was not addressed. Let's hope this go around we can get the appropriate people's attention.