5
$\begingroup$

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?

$\endgroup$
  • $\begingroup$ I am unfamiliar with this functionality. Do you have a reference from SO? $\endgroup$ – Stephen Rauch Mar 25 '18 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$ – Media Mar 25 '18 at 5:00
  • $\begingroup$ Why do you think this is based on Regular Expressions? $\endgroup$ – Stephen Rauch Mar 25 '18 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 Mar 25 '18 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$ – Media Mar 25 '18 at 7:36
  • 1
    $\begingroup$ Requested here $\endgroup$ – Dawny33 Apr 3 '18 at 6:26
4
$\begingroup$

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

Tensorflow dataset batching for complex data

Keras negative sampling with custom layer

$\endgroup$
  • 1
    $\begingroup$ Add three links to posts from nobody in particular... :-) $\endgroup$ – Stephen Rauch Mar 26 '18 at 23:48
2
$\begingroup$

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.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .