How to break lines into multiple lines in Pyspark
<p>I know in Python one can use backslash or even parentheses to break line into multiple lines. </p>

<p>But somehow in pyspark when I do this, i do get the next line as red which kind of shows something might be wrong.</p>

<pre><code>(conf.setAppName('Learnfit_Recommender')
 .set("spark.executor.memory", "10g")
 .set("spark.executor.cores",5)
 .set("spark.executor.instances",50)
 .set("spark.yarn.executor.memoryOverhead",1024)
)
</code></pre>

<p>EDIT 1: I changed the parentheses to backslash. And if you see the image, I see few '.' as red and even the sc variable is marked as red. </p>

<p><a href="https://i.stack.imgur.com/uvJ0V.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uvJ0V.png" alt="enter image description here"></a></p>

<p>Is this the correct way to break lines in pyspark?</p>