8

Currently, the "How to format" box in the edit window has the example language identifier

```python
  def function(foo):
    print(foo)
``` 

Which produces the non-hilighted output

  def function(foo):
    print(foo)

It should be

```lang-python
  def function(foo):
    print(foo)
``` 

Which has the properly highlighted output

  def function(foo):
    print(foo)

As per Cerbrus' answer this works for some (most?) languages.

I have seen the bug happen with Java as well, although that didn't happen when I tried to reproduce it here;

java:

public static void foo(){
}

lang-java:

public static void foo(){
}

I'm editing this question to see if the switch to hilight.js has changed things. (It has)

1 Answer 1

6

The lang- key is optional:

```lang-js
function test( ){
  return null;
}
```
function test( ){
  return null;
}

Versus:

```js
function test( ){
  return null;
}
``` 
function test( ){
  return null;
}

So this might be an alias / configuration issue specific to .

You must log in to answer this question.

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