This example will be helpful to make a marble text effect because It has some steps that is very clear and easy understandable so let's start.
New File: Take a new file to write marble text, the file size depends on your text capacity.
Control Text Format: Select Horizontal Type Tool (T key) and adjust the formatting then write text as you like.
Effects: Go to Layer Menu > Layer Style > Bevel and Emboss and Inner Glow, use both setting as given below.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.