# Arithmetic\_function/1

**URL:** <https://swi-prolog.discourse.group/t/arithmetic-function-1/2268>\
**Category:** Predicate\
**Created:** [May 3, 2020, 1:36pm UTC](https://swi-prolog.discourse.group/t/arithmetic-function-1/2268 "2020-05-03T13:36:31Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [May 6, 2020, 11:55am UTC](https://swi-prolog.discourse.group/t/arithmetic-function-1/2268/14 "2020-05-06T11:55:00Z")

</div>

> [@mcculloch](#):
>
> Sorry, I’m still not good at formatting in this forum.

FYI

I changed your code so it formats correctly.

Instead of using the quote button `"` which puts a `>`at the start of each line, use the preformatted text button `</>` which bookends the selected text with `````.

```
```
resolve(N,N) :- integer(N), !.
```
```

which renders as

```prolog
resolve(N,N) :- integer(N), !.

```

NB The default programming language for preformatted text is Prolog, you can also manually chose another language that is configured for this site, see [Language highlighting](https://swi-prolog.discourse.group/t/language-highlighting/2260)

Don’t worry many new users are not aware of these features. 🙂

Also take a look at  
[Discourse New User Guide](https://meta.discourse.org/t/discourse-new-user-guide/96331)  
[Markdown help](https://superuser.com/editing-help)  
[Markdown tutorial](https://commonmark.org/help/tutorial/)  
[Language highlighting](https://swi-prolog.discourse.group/t/language-highlighting/2260)

---

_[View the full topic](https://swi-prolog.discourse.group/t/arithmetic-function-1/2268)._
