Change the language the code is written in without changing the language in the settings

What I’m trying to do

We have no clue what you’re trying to do, can you provide more(any) details.

If related to code blocks, Obsidian uses Prism so just change the fence label. Support languages are here: Prism.

```javascript

code stuff here.

```

Besides that I honestly, have no clue what you are asking for help with.