
Notepad++에서는 코드를 올바르게 들여쓸 수 있나요?
내가 이것을 가지고 있다면 :
<div><div><div></div></div> </div>
다음과 같이 바꾸는 방법이 있나요?
<div>
<div>
<div>
</div>
</div>
</div>
답변1
TextFX 플러그인을 사용하여 코드를 다시 들여쓸 수 있습니다. 해당 기능이 없으면 플러그인 관리자에서 설치해야 합니다. 일단 배치되면 "TextFX" > "TextFX 편집" > "C++ 코드 다시 들여쓰기" 메뉴를 사용하세요.
아마도 한 줄도 변환되지 않을 것이지만 들여쓰기가 잘못된 실제 코드는 잘 처리될 것입니다.
더 많은 정보와 기타 플러그인에 대한 설명을 찾을 수 있습니다.여기.
답변2
설치하다접어서 들여쓰기플러그인. XML(또는 파생물) 태그와 잘 작동합니다.
답변3
내 모든 코드는 한 줄에 있었습니다(축소된). 내가 한 일은 온라인 "unminifier"를 사용하여 코드를 여러 줄로 분류하는 것이었습니다. 당신이 있다면 사용할 수 있는 것이 많이 있습니다구글 검색, 하지만 나에게 가장 효과적인 것은 다음과 같습니다. http://mrcoles.com/blog/css-unminify/
그런 다음 플러그인을 사용했습니다.@매그넘 언급됨(텍스트FX) 코드의 들여쓰기를 더욱 멋지게 꾸밀 수 있습니다. 결과는 훌륭했습니다!
전에:
object(stdClass)#2 (1) { ["GetDocTypeListResult"]=> object(stdClass)#3 (1) { ["DocType"]=> array(14) { [0]=> object(stdClass)#4 (2) { ["id"]=> string(3) "180" ["name"]=> string(49) "Return Merchandise Authorization and Notification" } [1]=> object(stdClass)#5 (2) { ["id"]=> string(3) "810" ["name"]=> string(16) "Customer Invoice" } [2]=> object(stdClass)#6 (2) { ["id"]=> string(3) "816" ["name"]=> string(28) "Organizational Relationships" } [3]=> object(stdClass)#7 (2) { ["id"]=> string(3) "820" ["name"]=> string(31) "Payment Order Remittance Advice" } [4]=> object(stdClass)#8 (2) { ["id"]=> string(3) "824" ["name"]=> string(18) "Application Advice" } [5]=> object(stdClass)#9 (2) { ["id"]=> string(3) "830" ["name"]=> string(41) "Planning Schedule with Release Capability" } [6]=> object(stdClass)#10 (2) { ["id"]=> string(3) "840" ["name"]=> string(21) "Request for Quotation" } [7]=> object(stdClass)#11 (2) { ["id"]=> string(3) "846" ["name"]=> string(24) "Inventory Inquiry/Advice" } [8]=> object(stdClass)#12 (2) { ["id"]=> string(3) "850" ["name"]=> string(14) "Purchase Order" } [9]=> object(stdClass)#13 (2) { ["id"]=> string(3) "852" ["name"]=> string(21) "Product Activity Data" } [10]=> object(stdClass)#14 (2) { ["id"]=> string(3) "860" ["name"]=> string(47) "Purchase Order Change Request - Buyer Initiated" } [11]=> object(stdClass)#15 (2) { ["id"]=> string(3) "864" ["name"]=> string(12) "Text Message" } [12]=> object(stdClass)#16 (2) { ["id"]=> string(3) "945" ["name"]=> string(25) "Warehouse Shipping Advice" } [13]=> object(stdClass)#17 (2) { ["id"]=> string(3) "997" ["name"]=> string(26) "Functional Acknowledgement" } } } }
후에:
object(stdClass)#2 (1) {
["GetDocTypeListResult"]=> object(stdClass)#3 (1) {
["DocType"]=> array(14) {
[0]=> object(stdClass)#4 (2) {
["id"]=> string(3) "180"
["name"]=> string(49) "Return Merchandise Authorization and Notification" }
[1]=> object(stdClass)#5 (2) {
["id"]=> string(3) "810"
["name"]=> string(16) "Customer Invoice" }
[2]=> object(stdClass)#6 (2) {
["id"]=> string(3) "816"
["name"]=> string(28) "Organizational Relationships" }
[3]=> object(stdClass)#7 (2) {
["id"]=> string(3) "820"
["name"]=> string(31) "Payment Order Remittance Advice" }
[4]=> object(stdClass)#8 (2) {
["id"]=> string(3) "824"
["name"]=> string(18) "Application Advice" }
[5]=> object(stdClass)#9 (2) {
["id"]=> string(3) "830"
["name"]=> string(41) "Planning Schedule with Release Capability" }
[6]=> object(stdClass)#10 (2) {
["id"]=> string(3) "840"
["name"]=> string(21) "Request for Quotation" }
[7]=> object(stdClass)#11 (2) {
["id"]=> string(3) "846"
["name"]=> string(24) "Inventory Inquiry/Advice" }
[8]=> object(stdClass)#12 (2) {
["id"]=> string(3) "850"
["name"]=> string(14) "Purchase Order" }
[9]=> object(stdClass)#13 (2) {
["id"]=> string(3) "852"
["name"]=> string(21) "Product Activity Data" }
[10]=> object(stdClass)#14 (2) {
["id"]=> string(3) "860"
["name"]=> string(47) "Purchase Order Change Request - Buyer Initiated" }
[11]=> object(stdClass)#15 (2) {
["id"]=> string(3) "864"
["name"]=> string(12) "Text Message" }
[12]=> object(stdClass)#16 (2) {
["id"]=> string(3) "945"
["name"]=> string(25) "Warehouse Shipping Advice" }
[13]=> object(stdClass)#17 (2) {
["id"]=> string(3) "997"
["name"]=> string(26) "Functional Acknowledgement" }
}
}
}
답변4
그만큼깔끔한2플러그인은 당신이 원하는 것을 정확하게 수행합니다.