It's hard to answer this kind of question without knowing very much about your specific code.
But basically, a single question can contain 65,536 characters. This should of course also include a description of what your code is doing.
If all your code doesn't fit within these constraints, that's okay. You don't have to post your whole code at once.