Prepositions before nouns

Prepositions used with "code"

Different prepositions with "code" express language, topic, location, or tools.

Quick answer

Common combinations with "code"

Use code in for programming languages, about code for discussions, and below the code for physical placement. Of code usually appears in quantity expressions.

She wrote the app in code based on Python.
We had a meeting about code quality.
Add your notes below the code block.

Choose the pattern by meaning

These forms are not interchangeable. Choose the construction by meaning, not by which preposition appears most often.

1
code in + language

Naming a programming language

Use in with languages or systems.

The software was written in code using Java.
2
about code

Discussing programming

Use about code for conversations or information.

The article about code security became popular.
3
with code

Using code as a tool

With code shows means or accompaniment.

They automated the task with code.
4
lines of code

Counting or measuring code

Use of code in quantity expressions.

The project contains thousands of lines of code.

See the difference in context

The same subject can take different constructions because each sentence answers a different question.

Construction
Example
Meaning
of code
pages of code
quantity or composition
in code
instructions written in code
using a coded or programming form
with code
solve the issue with code
using code as a tool
below code
See comments below the code.
location under a code section
about code
a lecture about code quality
topic or subject

Common mistakes

Some combinations appear in real text but do not mean what learners often assume.

Using "below code" without an article

English usually needs the before code in this meaning.

✕ below code ✓ below the code

Confusing "in code" and "with code"

In code refers to form or language; with code refers to a tool.

✕ The message was solved in code. ✓ The message was solved with code.

Quick practice

Choose the expression that matches the intended meaning.

1. The script was written ___ code using C++.
2. We talked ___ code efficiency.
3. Please add comments below ___ code.

Check your sentence in context

Paste the complete sentence below. Linguix checks the preposition together with grammar, spelling, punctuation, and style.

Free to try · No signup required

Frequently asked questions

Is "in code" only for programming?

No. It can also describe secret or coded communication.

Can I say "with code"?

Yes. It means using code as a tool or method.

What does "of code" usually mean?

It commonly appears in expressions of quantity, such as lines of code.

Write with confidence in Linguix

Create a free account to check complete texts, apply suggestions, and save your documents.

Create a free account