"Mathematica" code for the "+" option.

  • Context: Mathematica 
  • Thread starter Thread starter aheight
  • Start date Start date
  • Tags Tags
    Code Mathematica
Click For Summary
SUMMARY

The forum discussion centers on the request for syntax highlighting support for Mathematica code in forum threads. Users currently face limitations, as the existing code tags only support languages like PHP and HTML, resulting in an "unknown language" message when attempting to use Mathematica. The suggestion is to implement a dedicated code tag, such as [code=mathematica], to enhance readability and usability for Mathematica users. The inquiry directed to Greg Bernhardt seeks clarification on the feasibility of adding this feature.

PREREQUISITES
  • Familiarity with Mathematica programming language
  • Understanding of BBCode syntax for forum posts
  • Knowledge of forum software capabilities and limitations
  • Basic experience with coding syntax highlighting
NEXT STEPS
  • Research how to implement custom BBCode in forum software
  • Explore existing syntax highlighting libraries for Mathematica
  • Learn about user feedback mechanisms for forum feature requests
  • Investigate the process of adding new language support in forum platforms
USEFUL FOR

Mathematica users, forum administrators, and developers interested in enhancing forum functionality and user experience.

aheight
Messages
318
Reaction score
108
Sometimes I include Mathematica code. Is is possible to include this option when including code in the thread for the language option? For example, would be nice to have a heading as "Mathematica" in the following code insert rather than "text":

Code:
my mathematica code
 
Physics news on Phys.org
We have special code tags for PHP and HTML (including syntax highlighting), but I don't think we have something for mathematica.

PHP:
<?php echo 'Hello world!'; ?>

BB code help
 
No syntax highlighter for mathematica yet, you will get an "unknown language" message:

Code:
your mathematica code

(in general use [code=mathematica] for a syntax highlighting).

@Greg Bernhardt - is it something easy to add?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K